On Wed, Jul 27, 2022 at 11:10 AM <peter.wang@xxxxxxxxxxxx> wrote: > > From: Peter Wang <peter.wang@xxxxxxxxxxxx> > > 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@xxxxxxxxxxxxxxx> # 5.15.x > Signed-off-by: Peter Wang <peter.wang@xxxxxxxxxxxx> Reviewed-by: Stanley Chu <stanley.chu@xxxxxxxxxxxx>