OSDN Git Service

ARM: dts: sunxi: Add regulator-boot-on property to ahci-5v regulator
authorHans de Goede <hdegoede@redhat.com>
Thu, 13 Nov 2014 09:31:43 +0000 (10:31 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 13 Nov 2014 16:43:42 +0000 (17:43 +0100)
This avoids it getting briefly turned off between when the regulator getting
registered and the ahci driver turning it back on, thus avoiding the disk
going into emergency head park mode.

Reported-by: Bruno Prémont <bonbons@linux-vserver.org>
Tested-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sunxi-common-regulators.dtsi

index be5cfa3..d887663 100644 (file)
@@ -87,6 +87,7 @@
                regulator-name = "ahci-5v";
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
+               regulator-boot-on;
                enable-active-high;
                gpio = <&pio 1 8 0>;
                status = "disabled";