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

Commit a80a92ab authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: Fix imbalanced scsi_block_reqs_cnt caused by ufshcd_hold()"

parents 9f3a37c3 94eae105
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2244,12 +2244,12 @@ int ufshcd_hold(struct ufs_hba *hba, bool async)
		 * work and to enable clocks.
		 */
	case CLKS_OFF:
		ufshcd_scsi_block_requests(hba);
		hba->clk_gating.state = REQ_CLKS_ON;
		trace_ufshcd_clk_gating(dev_name(hba->dev),
					hba->clk_gating.state);
		queue_work(hba->clk_gating.clk_gating_workq,
			   &hba->clk_gating.ungate_work);
		if (queue_work(hba->clk_gating.clk_gating_workq,
			       &hba->clk_gating.ungate_work))
			ufshcd_scsi_block_requests(hba);
		/*
		 * fall through to check if we should wait for this
		 * work to be done or not.