]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: qcom: Fix ufs_qcom_resume()
authorBart Van Assche <bvanassche@acm.org>
Tue, 19 Apr 2022 22:58:05 +0000 (15:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:23:03 +0000 (23:23 -0400)
commit2654ea06516b644578a48d88fec84dae21117ad5
tree40353122a09ba1ac3e36c6db37bf9cfff41634d5
parenta24c613ca174446cc246e6ed3fc4b4851eeb36a5
scsi: ufs: qcom: Fix ufs_qcom_resume()

Clearing hba->is_sys_suspended if ufs_qcom_resume() succeeds is wrong. That
variable must only be cleared if all actions involved in a resume succeed.
Hence remove the statement that clears hba->is_sys_suspended from
ufs_qcom_resume().

Link: https://lore.kernel.org/r/20220419225811.4127248-23-bvanassche@acm.org
Fixes: e5586a66ebb0 ("ufs-qcom: add support for Qualcomm Technologies Inc platforms")
Tested-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-qcom.c