RE: [PATCH] scsi: ufs: core: Do not hold any lock in ufshcd_hba_stop

From: Avri Altman
Date: Thu Nov 28 2024 - 02:14:05 EST


> Shouldn't the ufshcd_enable_irq() call be moved below the
> ufshcd_wait_for_register() call? Otherwise a race condition could cause the
> interrupt handler to be triggered while the controller is being disabled.
Correct.
if ufshcd_enable_irq() is called before the controller is fully disabled, it could allow interrupts to occur prematurely.
Will move it.

Thanks,
Avri
>
> Thanks,
>
> Bart.