OSDN Git Service

scsi: ufs: ufs-qcom: Enter and exit hibern8 during clock scaling
authorAsutosh Das <asutoshd@codeaurora.org>
Tue, 28 Sep 2021 09:06:13 +0000 (02:06 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 29 Sep 2021 03:33:32 +0000 (23:33 -0400)
commita0cea83332ae2ba4b740a89fc094aba3298825db
tree38b15c17db99840e126c5f05fb08a7672da1d124
parent525943a586ef43ed365974deef2ebd9e921f2f83
scsi: ufs: ufs-qcom: Enter and exit hibern8 during clock scaling

Qualcomm controller needs to be in hibern8 before scaling clocks.  This
change puts the controller in hibern8 state before scaling and brings it
out after scaling of clocks.

Link: https://lore.kernel.org/r/212b7aaf6d834c4a8c682fdac4a59b84013ed573.1632818942.git.nguyenb@codeaurora.org
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-qcom.c