mmc: msm_sdcc: Reset interrupt MASK register (MCI_MASK0) on powering off
In one corner case, the SD card is stuck in a bad state with its DAT0 line pulled low, and SDCC is waiting on the interrupt when the line goes back high. But due its bad state eventually the SD card is removed from the system. Later during re-scanning of the devices, the SD card is power-cycled and added to the system. But now the pending interrupts for SD card is received as the interrupt MASK register (MCI_MASK0) was not cleared. To prevent such cases reset the interrupt MASK register (MCI_MASK0) while powering off to prevent any pending interrupts after power-cycle. (cherry picked from commit a3f8f793b21782c79a9fcc5f7aa1cc27fcbf246e) CRs-Fixed: 396706 Signed-off-by:Pratibhasagar V <pratibha@codeaurora.org> Change-Id: Idfae18895abf47769328b0a768f83eba2ef573f7 Signed-off-by:
Neha Pandey <nehap@codeaurora.org>
Loading
Please sign in to comment