]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: twl4030-power: Fix PM idle pin configuration to not conflict with regulators
authorTony Lindgren <tony@atomide.com>
Tue, 19 Aug 2014 15:24:05 +0000 (08:24 -0700)
committerLee Jones <lee.jones@linaro.org>
Thu, 28 Aug 2014 14:57:55 +0000 (15:57 +0100)
commit2a8746730221efd85724fd29470159b8b66518b8
tree19f9e87ed0787fe94e0e8f4612470cc9bc16411e
parentee8ae8a2b3cdaa1e5cab8beeed9eb127f4622514
mfd: twl4030-power: Fix PM idle pin configuration to not conflict with regulators

Commit 2ce39ce6a460 (mfd: twl4030-power: Add a configuration to turn
off oscillator during off-idle) added support for configuring the PMIC
to cut off resources during deeper idle states to save power.

This however caused regression for n900 display power that needed the
PMIC configuration to be disabled with commit c86c00bc8533 (ARM: dts:
Revert enabling of twl configuration for n900).

Turns out the root cause of the problem is that we must use
TWL4030_RESCONFIG_UNDEF instead of DEV_GRP_NULL to avoid disabling
regulators that may have been enabled before the init function
for twl4030-power.c runs. With TWL4030_RESCONFIG_UNDEF we let the
regulator framework control the regulators like it should. Here we
need to only configure the sys_clken and sys_off_mode triggers for
the regulators that cannot be done by the regulator framework as
it's not running at that point.

This allows us to enable the PMIC configuration for n900.

Fixes: 2ce39ce6a460 (mfd: twl4030-power: Add a configuration to turn off oscillator during off-idle)
Cc: stable@vger.kernel.org # v3.16
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
arch/arm/boot/dts/omap3-n900.dts
drivers/mfd/twl4030-power.c