[38/90] mmc: core: Fix voltage select in DDR mode
From: Greg KH <gregkh@suse.de>
Date: 2012-01-24 00:03:23
Also in:
lkml
3.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Girish K S <redacted> commit 913047e9e5787a90696533a9f109552b7694ecc9 upstream. This patch fixes the wrong comparison before setting the interface voltage in DDR mode. The assignment to the variable ddr before comaprison is either ddr = MMC_1_2V_DDR_MODE; or ddr == MMC_1_8V_DDR_MODE. But the comparison is done with the extended csd value if ddr == EXT_CSD_CARD_TYPE_DDR_1_2V. Signed-off-by: Girish K S <redacted> Acked-by: Subhash Jadavani <redacted> Acked-by: Philip Rakity <redacted> Signed-off-by: Chris Ball <redacted> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- drivers/mmc/core/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c@@ -830,7 +830,7 @@ static int mmc_init_card(struct mmc_host * * WARNING: eMMC rules are NOT the same as SD DDR */ - if (ddr == EXT_CSD_CARD_TYPE_DDR_1_2V) { + if (ddr == MMC_1_2V_DDR_MODE) { err = mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_120, 0); if (err)