mmc: msm_sdcc: Clean up clock management and add a 10us delay after enabling clocks
authorSan Mehat <san@google.com>
Sun, 8 Nov 2009 21:00:37 +0000 (13:00 -0800)
committerDaniel Walker <dwalker@codeaurora.org>
Thu, 18 Mar 2010 19:57:46 +0000 (12:57 -0700)
commit4adbbcc7b6cfb3dcf5ab49b06edb7752391b0e80
treeeeb534208a0f77994594dfe0738c85d8ef8c27fa
parent5b8a2fb34f5670b1f07483bfa40de9ce539dbdb2
mmc: msm_sdcc: Clean up clock management and add a 10us delay after enabling clocks

It appears that in some cases there may be a delay on the ARM9 in enabling our clock.
As a result, we may put the controller into a bad state. Delay 10us after enabling
clocks to let the peripheral settle. Note - this is all imperical.

Also ensure set_ios() callback grabs the host lock.

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