]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: omap_hsmmc: Introduce omap_hsmmc_prepare/complete
authorFelipe Balbi <balbi@ti.com>
Mon, 19 Nov 2012 16:29:59 +0000 (21:59 +0530)
committerChris Ball <cjb@laptop.org>
Tue, 4 Dec 2012 18:43:02 +0000 (13:43 -0500)
commit45e1d56b9f5918708a0f460912602d53661c151e
tree929ecbe51fe61a38bf3b7529cf6cf3ecd3c87bf9
parent6c0c8005ee475d434c33d59a9dd8c5c7d4fdb789
mmc: omap_hsmmc: Introduce omap_hsmmc_prepare/complete

prepare() is supposed to prevent new children from being registered.
On the MMC subsystem, children (new cards) registration starts with
the card detect IRQ.

Move card detect IRQ disabling to prepare() so that no new cards
will be registered while we're trying to suspend.

Likewise, move card detect IRQ enabling to complete() so we only
try to register new children after our MMC IP is back up.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c