scsi: ufs: fix missing up_write()

We should call up_write() in the error case.

Bug: 77551464
Change-Id: I2e959a17f2dcafd2a2b8ff78dc4f8fa971929ac1
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
fourteen
Jaegeuk Kim 7 years ago committed by Jenna
parent b1f86ec144
commit 72d49e9d8a
  1. 8
      drivers/scsi/ufs/ufshcd.c

@ -2277,9 +2277,9 @@ static int ufshcd_devfreq_scale(struct ufs_hba *hba, bool scale_up)
if (ufshcd_is_auto_hibern8_supported(hba) &&
hba->hibern8_on_idle.is_enabled) {
ret = ufshcd_uic_hibern8_enter(hba);
/* link will be bad state so no need to scale_up_gear */
if (ret)
/* link will be bad state so no need to scale_up_gear */
return ret;
goto clk_scaling_unprepare;
ufshcd_custom_cmd_log(hba, "Hibern8-entered");
}
@ -2291,9 +2291,9 @@ static int ufshcd_devfreq_scale(struct ufs_hba *hba, bool scale_up)
if (ufshcd_is_auto_hibern8_supported(hba) &&
hba->hibern8_on_idle.is_enabled) {
ret = ufshcd_uic_hibern8_exit(hba);
/* link will be bad state so no need to scale_up_gear */
if (ret)
/* link will be bad state so no need to scale_up_gear */
return ret;
goto clk_scaling_unprepare;
ufshcd_custom_cmd_log(hba, "Hibern8-Exited");
}

Loading…
Cancel
Save