mmc: sdhci: do not try to use 3.3V signaling if not supported
authorStefan Agner <stefan@agner.ch>
Thu, 5 Jul 2018 12:18:19 +0000 (14:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2018 06:38:11 +0000 (08:38 +0200)
commit636a9a7d52219fcf4364044a71947e3eebc2ac10
treeaca6beb2f1cd1c61cc7887423e90d976d866db75
parent26bea7e6d2cabf0e3a71f577640dbd78b2715ac7
mmc: sdhci: do not try to use 3.3V signaling if not supported

[ Upstream commit 1b5190c2e74c47ebe4bcecf7a072358ad9f1feaa ]

For eMMC devices it is valid to only support 1.8V signaling. When
vqmmc is set to a fixed 1.8V regulator the stack tries to set 3.3V
initially and prints the following warning:
   mmc1: Switching to 3.3V signalling voltage failed

Clear the MMC_SIGNAL_VOLTAGE_330 flag in case 3.3V is signaling is
not available. This prevents the stack from even trying to use
3.3V signaling and avoids the above warning.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci.c