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)
commit1418ab1cbe6ae7ca6827015a1acb7fcb3b7ce68e
treee9792b49e457393d275db4ab3948fa95f1ef57d6
parent344df5dc03fe955fbddf9c6f0f27a24f1bae9342
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