mmc: sdhci: check interrupt flags in ISR again
authorAlexander Stein <alexander.stein@systec-electronic.com>
Wed, 14 Mar 2012 08:52:10 +0000 (09:52 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 27 Mar 2012 16:20:13 +0000 (12:20 -0400)
commit6379b2375a0c5a6ad437616a4018e6b8fd95e97c
treef30a7782e36bff0ef4784547e1146d782af1c8b1
parente6039832bed9a9b967796d7021f17f25b625b616
mmc: sdhci: check interrupt flags in ISR again

When using MSI it is possible that a new MSI is sent while an earlier
MSI is currently handled. In this case SDHCI_INT_STATUS only contains
SDHCI_INT_RESPONSE and the ISR would not be called again. But at the end
of the ISR SDHCI_INT_DATA_END is now also pending which would be ignored.

Fix this by rereading the interrupt flags in the ISR until no interrupt
we care is pending.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c