[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linux-image-3.16.0-4-armmp: A20-OLinuXino-LIME2 power off doesn't work



On Fri, 2015-03-27 at 14:48 +0100, Jens Thiele wrote:
> afair to make power off work:
> CONFIG_MFD_AXP20X
> must be set
> 
> it isn't in:
> ii  linux-image-3.16.0-4-armmp   3.16.7-ckt7-1

The help text says:
          If you say Y here you get support for the X-Powers AXP202 and AXP209.
          This driver include only the core APIs. You have to select individual
          components like regulators or the PEK (Power Enable Key) under the
          corresponding menus.

so it sounds like MFD_AXP20X is necessary but perhaps not sufficient?
Enabling it makes CONFIG_REGULATOR_AXP20X=m available too.

I don't have a LIME2 but trying the patch below on my Cubietruck didn't
seem to change anything in response to typing poweroff (just as many
LEDs stay lit etc).

If someone can try this on a platform where it is expected to work (e.g.
LIME2, which I don't own) and report success, ideally in a bug report
against the kernel package, that would be appreciated.

Ian.

diff --git a/debian/config/armhf/config.armmp b/debian/config/armhf/config.armmp
index 03302a0..9630610 100644
--- a/debian/config/armhf/config.armmp
+++ b/debian/config/armhf/config.armmp
@@ -355,6 +355,7 @@ CONFIG_TI_EMIF=m
 ##
 ## file: drivers/mfd/Kconfig
 ##
+CONFIG_MFD_AXP20X=y
 CONFIG_MFD_DA9052_SPI=y
 CONFIG_MFD_DA9052_I2C=y
 CONFIG_MFD_MC13XXX_SPI=m
@@ -628,6 +629,7 @@ CONFIG_PWM_VT8500=m
 ##
 CONFIG_REGULATOR=y
 CONFIG_REGULATOR_ANATOP=m
+CONFIG_REGULATOR_AXP20X=m
 CONFIG_REGULATOR_DA9052=m
 CONFIG_REGULATOR_MC13783=m
 CONFIG_REGULATOR_MC13892=m


Ian.


Reply to: