Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5201fabc authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

scsi: ufs: fix order of pm_runtime_get_sync and ufshcd_hold_all calls



Quite a few UFS functions (especially those which are invoked in debugfs
context) are calling the ufshcd_hold_all() first before runtime resuming
the UFS host controller. As runtime suspend might have already power
collapsed UFS core controller, attempt to enable clocks (as done by
ufshcd_hold_all()) in power collapsed state will fail. This change fixes
this issue by calling pm_runtime_get_sync() before ufshcd_hold_all().

Change-Id: Iff1d54d815efafbc17d56562de2e9065770c2612
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent 66f4f85a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment