]> 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)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:13:10 +0000 (14:13 +0200)
commit366b1246fb464fab0d60d88fb6bdd6b6ce9017bf
tree882933d84cfb871bbff17fa052f41403e04e0401
parent4614d57735dfae012023830fa0fc683979c3e39f
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