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

Commit 1ae3062f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: synchronize between rls handler and clock scaling" into msm-4.14

parents 2ac4d93a ccba2e16
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7006,6 +7006,7 @@ static void ufshcd_rls_handler(struct work_struct *work)
	hba = container_of(work, struct ufs_hba, rls_work);
	ufshcd_scsi_block_requests(hba);
	pm_runtime_get_sync(hba->dev);
	down_write(&hba->lock);
	ret = ufshcd_wait_for_doorbell_clr(hba, U64_MAX);
	if (ret) {
		dev_err(hba->dev,
@@ -7039,6 +7040,7 @@ static void ufshcd_rls_handler(struct work_struct *work)
		hba->restore_needed = false;

out:
	up_write(&hba->lock);
	ufshcd_scsi_unblock_requests(hba);
	pm_runtime_put_sync(hba->dev);
}