msm: sdio: fix MCI_CLK corruption

when sdio_al calls set_pwrsave at the end of sdio_al_sleep
the following scenario can happen:
if between the reading of MCI_CLK and the writing of
MCI_CLK we got an interrupt from the modem, the msm_sdcc
irq handler will turn on the clocks.
msmsdcc_set_pwrsave and msmsdcc_platform_sdiowakeup_irq
have no protection between them so set_pwrsave will write
a corrupted value

Signed-off-by: Maya Erez <merez@codeaurora.org>
1 file changed