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

Skip to content
Commit 2d66615f authored by Venkat Gopalakrishnan's avatar Venkat Gopalakrishnan Committed by Can Guo
Browse files

scsi: ufs: fix ufshcd_hold deadlock



If ufs_qcom_testbus_config is called as part of dumping registers
inside ufshcd_ungate_work then a ufshcd_hold in this function will
deadlock triggering another ungate work and waiting for it to finish.
Fix this by making sure the caller already holds the needed locks
for clocks and runtime status.

Change-Id: I8f4c10d952c8f74c93b991088f5ee1eaf719ca84
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent 749c7319
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