OSDN Git Service

regulator: core: Resolve coupled regulators
authorMaciej Purski <m.purski@samsung.com>
Mon, 23 Apr 2018 14:33:40 +0000 (16:33 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 17 May 2018 07:05:49 +0000 (16:05 +0900)
commitd3d64537c33956c94cfa2376b87d8917868a0f5e
treea3f1856e09922e4afc9467d091df7d4096d2ea76
parenta085a31af566254fb8f7721911c828c8fa797894
regulator: core: Resolve coupled regulators

On Odroid XU3/4 and other Exynos5422 based boards there is a case, that
different devices on the board are supplied by different regulators
with non-fixed voltages. If one of these devices temporarily requires
higher voltage, there might occur a situation that the spread between
two devices' voltages is so high, that there is a risk of changing
'high' and 'low' states on the interconnection between devices powered
by those regulators.

Fill coupling descriptor with data obtained from DTS using previously
defined of_functions. Fail to register a regulator, if some data
inconsistency occurs. If some coupled regulators are not yet registered,
don't fail to register, but try to resolve them in late init call.

Signed-off-by: Maciej Purski <m.purski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c