mmc: host: Prepare host drivers for mmc_regulator_set_vqmmc() returning > 0
authorMarek Vasut <marex@denx.de>
Thu, 16 Apr 2020 16:36:47 +0000 (18:36 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:20:58 +0000 (11:20 +0200)
commit9cbe0fc8cd9c156ff187231dbb38b02ee20fc8c6
treee2e52db264f575f6d6a7c17e54e9be1509c46648
parent098c408b040d49158dc6aea52db7493187ac5e09
mmc: host: Prepare host drivers for mmc_regulator_set_vqmmc() returning > 0

Patch all drivers which use mmc_regulator_set_vqmmc() and prepare them for
the fact that mmc_regulator_set_vqmmc() can return a value > 0, which would
happen if the signal voltage switch did NOT happen, because the voltage was
already set correctly.

Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20200416163649.336967-1-marex@denx.de
[Ulf: Re-worked/simplified the code a bit]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-k3.c
drivers/mmc/host/dw_mmc.c
drivers/mmc/host/meson-gx-mmc.c
drivers/mmc/host/mtk-sd.c
drivers/mmc/host/renesas_sdhi_core.c
drivers/mmc/host/sdhci-sprd.c
drivers/mmc/host/sdhci.c
drivers/mmc/host/sunxi-mmc.c