]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00220469 mmc: sdio: claim host on suspend and release on resuming
authorRyan QIAN <b32804@freescale.com>
Tue, 9 Oct 2012 00:58:41 +0000 (08:58 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:31 +0000 (08:35 +0200)
commite459d131b6d4cfb393464831c8f34dda15e9be7b
tree882933d84cfb871bbff17fa052f41403e04e0401
parent5ddb39919dea83f11258297241b080ff1df573a2
ENGR00220469 mmc: sdio: claim host on suspend and release on resuming

issue:
Since there's no sync mechanism between sdio bus suspending and sdio_irq_thread,
it will cause that sdio_irq_thread still makes sdhc request even after sdio bus
suspends.

fix:
On suspending sdio bus, claim host, so that:
1. mmc_sdio_suspend will wait for finishing of sdio_irq_thread.
2. sdio_irq_thread will be blocked even being scheduled.
And release host on resuming.

Acked-by: Aisheng DONG <b29396@freescale.com>
Signed-off-by: Ryan QIAN <b32804@freescale.com>
drivers/mmc/core/sdio.c