Jaegeuk Kim 8fc1377131
scsi: ufs: Fix pm_runtime count in reset flow
ufshcd_probe_hba() puts pm_runtime all the time. So, during the reset flow,
we need to get one.

pm_runtime_get_sync (1)
ufshcd_async_scan
pm_runtime_get_sync (2)
ufshcd_hold_all
ufshcd_probe_hba
 - pm_runtime_put_sync (1)
 - ufshcd_reset_and_restore
   - ufshcd_detect_device
    - ufshcd_host_reset_and_restore
       - ufshcd_probe_hba
       - pm_runtime_put_sync (0)

ufshcd_release_all
pm_runtime_put_sync (-1)

Bug: 157744625
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I2d5696d6143842790fa25218beda12b71cfcc1d6
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: alanndz <alanndz7@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-07-26 07:18:21 +00:00
..
2021-07-20 16:17:49 +02:00
2021-07-20 16:17:49 +02:00
2022-06-14 17:05:02 +02:00
2019-12-01 09:13:27 +01:00
2021-05-22 10:57:31 +02:00
2021-05-22 10:57:31 +02:00
2022-01-27 09:00:58 +01:00
2022-01-27 09:00:58 +01:00
2021-05-22 10:57:31 +02:00