Skip to content

Commit

Permalink
sdio: kick the interrupt thread upon a resume
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
npitre authored and torvalds committed Mar 6, 2010
1 parent 3bca4cf commit 4021684
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mmc/core/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ static int mmc_sdio_resume(struct mmc_host *host)
mmc_claim_host(host);
err = mmc_sdio_init_card(host, host->ocr, host->card,
(host->pm_flags & MMC_PM_KEEP_POWER));
if (!err && host->sdio_irqs)
mmc_signal_sdio_irq(host);
mmc_release_host(host);

/*
Expand Down

0 comments on commit 4021684

Please sign in to comment.