diff options
author | Nicolas Pitre <nico@fluxnic.net> | 2010-03-05 16:43:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-06 14:26:37 -0500 |
commit | 40216842dca4fa485cb1aa5eb231149a4a57cc85 (patch) | |
tree | 25e51613412e3c8188d6476ec886a2f844d51714 /drivers/mmc | |
parent | 3bca4cf703826fcb2bbabbe19c6fc7b2fc4fd7cc (diff) |
sdio: kick the interrupt thread upon a resume
Some SDIO cards may suspend while keeping function interrupts active
especially in the powered suspend case. Upon resume we need to kick the
SDIO interrupt thread to check for pending interrupts and to restart card
IRQ detection at the host controller level.
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/sdio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c index 7d8ba64b0170..5840de106b69 100644 --- a/drivers/mmc/core/sdio.c +++ b/drivers/mmc/core/sdio.c | |||
@@ -441,6 +441,8 @@ static int mmc_sdio_resume(struct mmc_host *host) | |||
441 | mmc_claim_host(host); | 441 | mmc_claim_host(host); |
442 | err = mmc_sdio_init_card(host, host->ocr, host->card, | 442 | err = mmc_sdio_init_card(host, host->ocr, host->card, |
443 | (host->pm_flags & MMC_PM_KEEP_POWER)); | 443 | (host->pm_flags & MMC_PM_KEEP_POWER)); |
444 | if (!err && host->sdio_irqs) | ||
445 | mmc_signal_sdio_irq(host); | ||
444 | mmc_release_host(host); | 446 | mmc_release_host(host); |
445 | 447 | ||
446 | /* | 448 | /* |