]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Handle probe deferral from DT when resolving supplies
authorMark Brown <broonie@kernel.org>
Thu, 1 Oct 2015 09:59:48 +0000 (10:59 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 1 Oct 2015 10:10:29 +0000 (11:10 +0100)
commite47ba9f8433de4e42065c436ca0b184c4b6afa51
tree23e85632a6fcafe1bd1ee86075e13e7f852a5fa8
parent07f19a5b35449711dd42c7df1575e48a15736670
regulator: core: Handle probe deferral from DT when resolving supplies

When resolving regulator-regulator supplies we ignore probe deferral
returns from regulator_dev_lookup() (such as are generated for DT when
we can see a supply is registered) and just fall back to the dummy
regulator if there are full constraints (as is the case for DT).  This
means that probe deferral is broken for DT systems, fix that by paying
attention to -EPROBE_DEFER return codes like we do -ENODEV.

A further patch will simplify this further, this is a minimal fix for
the specific issue.

Fixes: 617d40aadbc968aca (regulator: core: Handle full constraints systems when resolving supplies)
Reported-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonnie@kernel.org>
Cc: stable@vger.kernel.org
drivers/regulator/core.c