OSDN Git Service

mmc: sdhci-msm: Fix issue with 1.8v switch sequence in 3.10 kernel
authorSahitya Tummala <stummala@codeaurora.org>
Tue, 20 Aug 2013 10:02:09 +0000 (15:32 +0530)
committerSubhash Jadavani <subhashj@codeaurora.org>
Fri, 27 May 2016 17:28:53 +0000 (10:28 -0700)
commitc2037aa944ca2f3decbefa620d4392652b51f286
tree92fa1ffc37f5a64c66b106c4e42624fa5ee3f44c
parent2ba264341c60b4a5ab95ef75575a92b941cedc9d
mmc: sdhci-msm: Fix issue with 1.8v switch sequence in 3.10 kernel

The SD3.0 voltage switch sequence to 1.8v would involve stopping the
SDCLK before changing the voltage level and with recent changes in 3.10
kernel, the peripheral clocks are also getting disabled instead of
just stopping the clock to the card. This patch makes sure this doesn't
happen by marking the flag card_clock_off in struct mmc_host before
starting the voltage switch sequence and checking it in host controller
driver.

Change-Id: If62378ba1dd369e69524365a4421d57317c22ca2
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
drivers/mmc/core/core.c
drivers/mmc/host/sdhci-msm.c
include/linux/mmc/host.h