diff options
Diffstat (limited to 'drivers/mmc/core/sdio_irq.c')
-rw-r--r-- | drivers/mmc/core/sdio_irq.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mmc/core/sdio_irq.c b/drivers/mmc/core/sdio_irq.c index 3d8ceb4084de..aaa90460ed23 100644 --- a/drivers/mmc/core/sdio_irq.c +++ b/drivers/mmc/core/sdio_irq.c | |||
@@ -53,6 +53,17 @@ static int process_sdio_pending_irqs(struct mmc_host *host) | |||
53 | return ret; | 53 | return ret; |
54 | } | 54 | } |
55 | 55 | ||
56 | if (pending && mmc_card_broken_irq_polling(card) && | ||
57 | !(host->caps & MMC_CAP_SDIO_IRQ)) { | ||
58 | unsigned char dummy; | ||
59 | |||
60 | /* A fake interrupt could be created when we poll SDIO_CCCR_INTx | ||
61 | * register with a Marvell SD8797 card. A dummy CMD52 read to | ||
62 | * function 0 register 0xff can avoid this. | ||
63 | */ | ||
64 | mmc_io_rw_direct(card, 0, 0, 0xff, 0, &dummy); | ||
65 | } | ||
66 | |||
56 | count = 0; | 67 | count = 0; |
57 | for (i = 1; i <= 7; i++) { | 68 | for (i = 1; i <= 7; i++) { |
58 | if (pending & (1 << i)) { | 69 | if (pending & (1 << i)) { |