ARM: dts: exynos: Fix eMMC regulator properties on Odroid U3 boards
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 9 Jan 2019 09:55:57 +0000 (10:55 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 10 Jan 2019 20:02:56 +0000 (21:02 +0100)
LDO20 regulator provides power for the MMC card on Odroid U3 boards. That
regulator has been marked as 'boot-on' since the beginning of Odroid X/U3
support, but such flag is not really needed for it. That regulator is
correctly described as supply for eMMC card and controlled by its driver.

Commit 05f224ca6693 ("regulator: core: Clean enabling always-on regulators
+ their supplies") changed the way the boot-on regulators are handled and
since then regulators marked as 'boot-on' got increased reference count
and are not turned off for the system suspend time.

The new approach turned out to break suspend/resume support on Odroid U3
with eMMC card, because the card is not properly shutdown due to missing
of power cycle. Fix this by removing excessive 'boot-on' flag and let
MMC driver to control turning power on and off.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos4412-odroid-common.dtsi

index 3a9eb1e..24bcad3 100644 (file)
                                regulator-name = "LDO20_1.8V";
                                regulator-min-microvolt = <1800000>;
                                regulator-max-microvolt = <1800000>;
-                               regulator-boot-on;
                        };
 
                        ldo21_reg: LDO21 {