]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00178458 - WM8962 regulator constraint fix to prevent unwanted disable
authorDanny Nold <dannynold@freescale.com>
Fri, 30 Mar 2012 02:28:14 +0000 (21:28 -0500)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:23 +0000 (14:11 +0200)
SPKVDD regulator was being disabled whenever EPDC was included in the
image, because the EPD PMIC initialization code includes an invocation
of regulator_has_full_constraints().  This causes all regulators with
zero ref count to be disabled as part of a late_initcall.  To prevent
this disable (which breaks ethernet and DHCP), set regulator to
have boot_on attribute, so that it will not be disabled at end of
driver loading sequence.

Signed-off-by: Danny Nold <dannynold@freescale.com>
arch/arm/mach-mx6/board-mx6q_sabresd.c

index 90b222c044a46fa73b2b978917ff5b66ee3fdd45..27a5a89198c6af8eecfd547a33a42b20c6d32fc7 100644 (file)
@@ -397,6 +397,11 @@ static struct regulator_consumer_supply sabresd_vwm8962_consumers[] = {
 };
 
 static struct regulator_init_data sabresd_vwm8962_init = {
+       .constraints = {
+               .name = "SPKVDD",
+               .valid_ops_mask =  REGULATOR_CHANGE_STATUS,
+               .boot_on = 1,
+       },
        .num_consumer_supplies = ARRAY_SIZE(sabresd_vwm8962_consumers),
        .consumer_supplies = sabresd_vwm8962_consumers,
 };