Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe696cda authored by Package Warehouse Build User's avatar Package Warehouse Build User Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: fix scheduling while atomic" into msm-4.14

parents 67607d83 702f44e9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2166,6 +2166,12 @@ int ufshcd_hold(struct ufs_hba *hba, bool async)
		 */
		if (ufshcd_can_hibern8_during_gating(hba) &&
		    ufshcd_is_link_hibern8(hba)) {
			if (async) {
				rc = -EAGAIN;
				hba->clk_gating.active_reqs--;
				break;
			}

			spin_unlock_irqrestore(hba->host->host_lock, flags);
			flush_work(&hba->clk_gating.ungate_work);
			spin_lock_irqsave(hba->host->host_lock, flags);