mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
Revert "FROMLIST: scsi: ufs-qcom: enter and exit hibern8 during clock scaling"
This reverts commit 8e57dcda43.
Failed upstream commit. Last attempt was over a year ago. Asutosh
mentioned that they have no plans to continue with this in the near
future.
Suggested-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Change-Id: I6550947579c36e415271d1637e8bbc0ed6f11925
This commit is contained in:
@@ -1213,34 +1213,24 @@ static int ufs_qcom_clk_scale_notify(struct ufs_hba *hba,
|
||||
int err = 0;
|
||||
|
||||
if (status == PRE_CHANGE) {
|
||||
err = ufshcd_uic_hibern8_enter(hba);
|
||||
if (err)
|
||||
return err;
|
||||
if (scale_up)
|
||||
err = ufs_qcom_clk_scale_up_pre_change(hba);
|
||||
else
|
||||
err = ufs_qcom_clk_scale_down_pre_change(hba);
|
||||
if (err)
|
||||
ufshcd_uic_hibern8_exit(hba);
|
||||
|
||||
} else {
|
||||
if (scale_up)
|
||||
err = ufs_qcom_clk_scale_up_post_change(hba);
|
||||
else
|
||||
err = ufs_qcom_clk_scale_down_post_change(hba);
|
||||
|
||||
|
||||
if (err || !dev_req_params) {
|
||||
ufshcd_uic_hibern8_exit(hba);
|
||||
if (err || !dev_req_params)
|
||||
goto out;
|
||||
}
|
||||
|
||||
ufs_qcom_cfg_timers(hba,
|
||||
dev_req_params->gear_rx,
|
||||
dev_req_params->pwr_rx,
|
||||
dev_req_params->hs_rate,
|
||||
false);
|
||||
ufshcd_uic_hibern8_exit(hba);
|
||||
}
|
||||
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user