]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Fix voltage select in DDR mode
authorGirish K S <girish.shivananjappa@linaro.org>
Thu, 15 Dec 2011 11:57:42 +0000 (17:27 +0530)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 04:58:45 +0000 (23:58 -0500)
commit36be438b569f7c830e6a0fa5e7ab6210640428fd
tree34391f25cb71bdd4abbaa8fe478f47dec3910b3f
parentfb6ac155aa8a1453155c2f3cd049a54ad1cfd6fd
mmc: core: Fix voltage select in DDR mode

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 <girish.shivananjappa@linaro.org>
Acked-by: Subhash Jadavani <subhashj@codeaurora.org>
Acked-by: Philip Rakity <prakity@marvell.com>
Cc: <stable@kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c