]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator: gpio: Add input_supply support in gpio_regulator_config
authorJerome Neanne <jneanne@baylibre.com>
Thu, 29 Sep 2022 13:25:25 +0000 (15:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 13:57:48 +0000 (15:57 +0200)
commite772f8f5c82d6b96a72ab83c39a8d2dfa1458577
tree282368ec2249e7109cfd98e568d1d4f02ffe7c0f
parent1728e17762b9131f1bbbc3c44964ea32c2f8f866
regulator: gpio: Add input_supply support in gpio_regulator_config

[ Upstream commit adfdfcbdbd32b356323a3db6d3a683270051a7e6 ]

This is simillar as fixed-regulator.
Used to extract regulator parent from the device tree.

Without that property used, the parent regulator can be shut down (if not an always on).
Thus leading to inappropriate behavior:
On am62-SP-SK this fix is required to avoid tps65219 ldo1 (SDMMC rail) to be shut down after boot completion.

Signed-off-by: Jerome Neanne <jneanne@baylibre.com>
Link: https://lore.kernel.org/r/20220929132526.29427-2-jneanne@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: c9764fd88bc7 ("regulator: gpio: Fix the out-of-bounds access to drvdata::gpiods")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/gpio-regulator.c
include/linux/regulator/gpio-regulator.h