]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: tmio: check mmc_regulator_get_supply return value
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>
Fri, 22 Sep 2017 11:22:17 +0000 (12:22 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 Oct 2017 10:46:03 +0000 (11:46 +0100)
commit60469d569c611e61d742248a93afdc6f5fbf4195
treed92387fe261b571f3b578dbb99cd8cc26fa6f475
parent96be2d07847c717a4052fb85b3f622d6468c76c2
mmc: tmio: check mmc_regulator_get_supply return value

mmc_regulator_get_supply returns -EPROBE_DEFER if either vmmc or
vqmmc regulators had their probing deferred.
vqmmc regulator is needed by UHS to work properly, therefore this
patch checks the value returned by mmc_regulator_get_supply to
make sure we have a reference to both vmmc and vqmmc (if found in
the DT).

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_core.c