File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -4768,20 +4768,14 @@ EXPORT_SYMBOL_GPL(ufshcd_make_hba_operational);
4768
4768
*/
4769
4769
void ufshcd_hba_stop (struct ufs_hba * hba )
4770
4770
{
4771
- unsigned long flags ;
4772
4771
int err ;
4773
4772
4774
- /*
4775
- * Obtain the host lock to prevent that the controller is disabled
4776
- * while the UFS interrupt handler is active on another CPU.
4777
- */
4778
- spin_lock_irqsave (hba -> host -> host_lock , flags );
4773
+ ufshcd_disable_irq (hba );
4779
4774
ufshcd_writel (hba , CONTROLLER_DISABLE , REG_CONTROLLER_ENABLE );
4780
- spin_unlock_irqrestore (hba -> host -> host_lock , flags );
4781
-
4782
4775
err = ufshcd_wait_for_register (hba , REG_CONTROLLER_ENABLE ,
4783
4776
CONTROLLER_ENABLE , CONTROLLER_DISABLE ,
4784
4777
10 , 1 );
4778
+ ufshcd_enable_irq (hba );
4785
4779
if (err )
4786
4780
dev_err (hba -> dev , "%s: Controller disable failed\n" , __func__ );
4787
4781
}
You can’t perform that action at this time.
0 commit comments