From c2037aa944ca2f3decbefa620d4392652b51f286 Mon Sep 17 00:00:00 2001 From: Sahitya Tummala Date: Tue, 20 Aug 2013 15:32:09 +0530 Subject: 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 --- include/linux/mmc/host.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/linux') diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 1939cd47b3aa..63a10df66b87 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -404,6 +404,11 @@ struct mmc_host { } embedded_sdio_data; #endif + /* + * Set to 1 to just stop the SDCLK to the card without + * actually disabling the clock from it's source. + */ + bool card_clock_off; unsigned long private[0] ____cacheline_aligned; }; -- cgit v1.2.3