scsi: ufs: Disable irq before turning off clocks in suspend path
In ufs suspend path we are turning off the clocks first and then
disabling the irq. But in few scenarios link remains in active state
(say rpm_lvl=2) and there is a chance that link can trigger error
interrupts. If interrupt gets triggered after disabling clocks and
before disabling irq, ISR gets invoked and tries to read registers
which can lead to un-clocked access.
To avoid this scenario, disable irq before disabling clocks.
Change-Id: Ia9df61ac11d1e27f4d373df42d79b6fa7a11c28f
Signed-off-by:
Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Loading
Please register or sign in to comment