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: 
Venkat Gopalakrishnan <venkatg@codeaurora.org>
Loading
Please register or sign in to comment