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

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

Merge "scsi: ufs: Ensure clocks are ON while running power change procedure"

parents 4286797a 1bba10ef
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1402,6 +1402,9 @@ static int ufs_qcom_pwr_change_notify(struct ufs_hba *hba,
	int ret = 0;
	int res = 0;

	hba->ufs_stats.clk_hold.ctx = PWR_CHG_NOTIFY;
	ufshcd_hold(hba, false);

	if (!dev_req_params) {
		pr_err("%s: incoming dev_req_params is NULL\n", __func__);
		ret = -EINVAL;
@@ -1492,6 +1495,8 @@ static int ufs_qcom_pwr_change_notify(struct ufs_hba *hba,
		break;
	}
out:
	hba->ufs_stats.clk_rel.ctx = PWR_CHG_NOTIFY;
	ufshcd_release(hba, false);
	return ret;
}

+1 −0
Original line number Diff line number Diff line
@@ -615,6 +615,7 @@ enum ufshcd_ctx {
	H8_EXIT_WORK,
	UIC_CMD_SEND,
	PWRCTL_CMD_SEND,
	PWR_CHG_NOTIFY,
	TM_CMD_SEND,
	XFR_REQ_COMPL,
	CLK_SCALE_WORK,