mmc: core: Ensure clocks are always enabled before host interaction
authorSujit Reddy Thumma <sthumma@codeaurora.org>
Sat, 4 Feb 2012 21:14:50 +0000 (16:14 -0500)
committerChris Ball <cjb@laptop.org>
Tue, 14 Feb 2012 01:38:58 +0000 (20:38 -0500)
commit2c4967f741e87cdd63de7271b97807041dccbf3b
treee9792b49e457393d275db4ab3948fa95f1ef57d6
parentb6bf30d912ddc9a3ac2ce264a04e3ec6d4e74a34
mmc: core: Ensure clocks are always enabled before host interaction

Ensure clocks are always enabled before any interaction with the
host controller driver. This makes sure that there is no race
between host execution and the core layer turning off clocks
in different context with clock gating framework.

Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Per Forlin <per.forlin@stericsson.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c
drivers/mmc/core/host.h
drivers/mmc/core/sd.c
drivers/mmc/core/sdio_irq.c
include/linux/mmc/host.h