On Wed, Jul 27, 2022 at 11:10 AM peter.wang@mediatek.com wrote:
From: Peter Wang peter.wang@mediatek.com
After ufshcd_wl_shutdown set device power off and link off, ufshcd_shutdown could turn off clock/power.
Also remove pm_runtime_get_sync. The reason why here can remove pm_runtime_get_sync is because, (1) ufshcd_wl_shutdown -> pm_runtime_get_sync, will resume hba->dev too. (2) device resume(turn on clk/power) is not required, even if device is in RPM_SUSPENDED.
Fixes: b294ff3e3449 ("scsi: ufs: core: Enable power management for wlun") Cc: stable@vger.kernel.org # 5.15.x Signed-off-by: Peter Wang peter.wang@mediatek.com
Reviewed-by: Stanley Chu stanley.chu@mediatek.com