diff options
author | Peter Wang <[email protected]> | 2022-07-27 11:05:26 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-08-01 19:32:44 -0400 |
commit | 00511d2abf5708ad05dd5d1c36adb2468d274698 (patch) | |
tree | 803a081b39d31d5783f7beb4caf4704ec4fa429b /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 86a44f045b8cbfd885b7425f4cd8a1c353593057 (diff) |
scsi: ufs: core: Correct ufshcd_shutdown() flow
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 it is safe to remove pm_runtime_get_sync() is because:
- ufshcd_wl_shutdown() -> pm_runtime_get_sync() will resume hba->dev too.
- device resume(turn on clk/power) is not required, even if device is in
RPM_SUSPENDED.
Link: https://lore.kernel.org/r/[email protected]
Fixes: b294ff3e3449 ("scsi: ufs: core: Enable power management for wlun")
Cc: <[email protected]> # 5.15.x
Reviewed-by: Stanley Chu <[email protected]>
Signed-off-by: Peter Wang <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions