From: Shawn Guo Date: Tue, 21 Jun 2011 14:41:48 +0000 (+0800) Subject: mmc: sdhci: fix interrupt storm from card detection X-Git-Tag: v3.1-rc1~321^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d25928d1eed06a9c23c723466dfa7cbee0a5e07d;p=pandora-kernel.git 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 Cc: Eric Benard Tested-by: Arnaud Patard Signed-off-by: Chris Ball --- Reading git-diff-tree failed