> 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.