]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: mmc: correct the logic for setting HS400ES signal voltage
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 8 Aug 2017 10:54:01 +0000 (18:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2017 20:46:52 +0000 (13:46 -0700)
commit8d189f60407f878aff3bc782e109edd713da9655
tree4f6aae1ebe48a1507d255ace80a9841de5beb482
parent3329fe0e05f8eb1a82b04d921b07c2ece0e3c802
mmc: mmc: correct the logic for setting HS400ES signal voltage

commit 92ddd95919466de5d34f3cb43635da9a7f9ab814 upstream.

Change the default err value to -EINVAL, make sure the card only
has type EXT_CSD_CARD_TYPE_HS400_1_8V also do the signal voltage
setting when select hs400es mode.

Fixes: commit 1720d3545b77 ("mmc: core: switch to 1V8 or 1V2 for hs400es mode")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/mmc.c