[PATCH v5] ufs: core: correct ufshcd_shutdown flow

Stanley Chu chu.stanley at gmail.com
Tue Jul 26 20:11:55 PDT 2022


On Wed, Jul 27, 2022 at 11:10 AM <peter.wang at mediatek.com> wrote:
>
> From: Peter Wang <peter.wang at 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 at vger.kernel.org> # 5.15.x
> Signed-off-by: Peter Wang <peter.wang at mediatek.com>

Reviewed-by: Stanley Chu <stanley.chu at mediatek.com>



More information about the Linux-mediatek mailing list