mmc: msm_sdcc: Fix issue where clocks could be disabled mid transaction
authorSan Mehat <san@google.com>
Thu, 3 Dec 2009 18:58:54 +0000 (10:58 -0800)
committerDaniel Walker <dwalker@codeaurora.org>
Thu, 18 Mar 2010 20:37:23 +0000 (13:37 -0700)
commitd0719e59f4ad96616f7c02ef0201667e41778c88
tree51c30578d5942737d549700c5c28a3d200340d4d
parent6ac9ea69069804d357064357d0082b0eab4c87ce
mmc: msm_sdcc: Fix issue where clocks could be disabled mid transaction

msmsdcc_enable_clocks() was incorrectly being called depending on
the state of host->clks_on. This means the busclk idle timer was never
being deleted if the clock was already on.. Bogus.

    Also fixes a possible double clk disable if the call to
del_timer_sync() in msmsdcc_disable_clocks() raced with
the busclk timer.

Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
drivers/mmc/host/msm_sdcc.c