Shawn Guo d25928d1ee mmc: sdhci: fix interrupt storm from card detection
The issue was initially found by Eric Benard as below.

http://permalink.gmane.org/gmane.linux.ports.arm.kernel/108031

Not sure about other SDHCI based controller, but on Freescale eSDHC,
the SDHCI_INT_CARD_INSERT bits will be immediately set again when it
gets cleared, if a card is inserted. The driver need to mask the irq
to prevent interrupt storm which will freeze the system.  And the
SDHCI_INT_CARD_REMOVE gets the same situation.

The patch fixes the problem based on the initial idea from
Eric Benard.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Eric Benard <eric@eukrea.com>
Tested-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
2011-07-20 17:21:01 -04:00
..
2011-05-26 17:12:32 -07:00
2011-06-11 15:06:48 -07:00
2011-07-11 09:52:35 -04:00
2011-06-06 14:14:56 +02:00
2011-07-03 14:26:24 -05:00
2011-06-14 15:15:25 +09:00
2011-05-30 11:14:15 +09:30
2011-07-04 16:02:48 +09:00
2011-07-17 12:40:08 +00:00