Skip to content

power: twl4030_charger: cleanup to handle various battery handling error conditions

Nishanth Menon linux-arm-kernel linux-omap lkml 1 version Applied

Status from this message: applied to battery-2.6.git:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 10 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2power: twl4030_charger: detect battery presence prior to enabling chargerdrivers/power/twl4030_charger.c+43 -13 replies
2/2power: twl4030_charger: attempt to power off in case of critical eventsdrivers/power/twl4030_charger.c+21 -57 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchTony Lindgren
1/2T-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/2] power: twl4030_charger: cleanup to handle various battery handling error conditions

Hi,

This issue was originally reported by Russell on OMAP3-LDP platform, and original attempt to solve this by Felipe[1] did not quiet work, follow on attempt[2] seems to be effective, but in this resend, I have added an shutdown attempt in case things dont quiet look right.

Based on: v3.15-rc7

Tests:
ldp boot with battery: http://slexy.org/raw/s20StiV4xr
ldp boot with a/c charger, no battery: http://slexy.org/raw/s2UfjIkZKG
ldp boot with a/c charger+battery, remove battery: http://slexy.org/raw/s2yFTVlrWJ
^^ <- this is not exactly a safe test to perform :)..

Nishanth Menon (2):
power: twl4030_charger: detect battery presence prior to enabling
charger
power: twl4030_charger: attempt to power off in case of critical
events

 drivers/power/twl4030_charger.c |   70 +++++++++++++++++++++++++++++++++++----
 1 file changed, 64 insertions(+), 6 deletions(-)

[1] https://patchwork.kernel.org/patch/4002371/
[2] https://patchwork.kernel.org/patch/4124751/

Signature · 1 line
1.7.9.5