OSDN Git Service

mmc: sdhci-msm: Fix issue with power save bit enablement
authorSahitya Tummala <stummala@codeaurora.org>
Thu, 29 Aug 2013 10:51:08 +0000 (16:21 +0530)
committerSubhash Jadavani <subhashj@codeaurora.org>
Fri, 27 May 2016 17:28:53 +0000 (10:28 -0700)
commit2ba264341c60b4a5ab95ef75575a92b941cedc9d
tree9af8fc7e7197febcfc4285a9adeb050d23336f8e
parent3118da1c322234006a43f84aef70a399ac3ce643
mmc: sdhci-msm: Fix issue with power save bit enablement

The power save bit is currently enabled based on the clock
rate (clk_rate > 400KHz) within struct sdhci_msm_host. But this
clk_rate is updated with the latest value down in this function
sdhci_msm_set_clock(). So during runtime/system resume when the
card is still in initialization phase, the power save bit is
getting enabled when sdhci_msm_set_clock() is called for the
first time based on the previous rate which is wrong.

Change-Id: I05dc8a4a760f658935de3831aaf8dd3b2b996466
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
drivers/mmc/host/sdhci-msm.c