Skip to content

Enhance twl4030_charger functionality.

NeilBrown linux-arm-kernel linux-omap linux-pm lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 40 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/15power_supply core: support use of devres to register/unregister a power supply.drivers/power/power_supply_core.c include/linux/power_supply.h+49 -01 reply
2/15twl4030_charger: use devm_request_threaded_irqdrivers/power/twl4030_charger.c+6 -120 replies
3/15twl4030_charger: use devres for power_supply_register and kzalloc.drivers/power/twl4030_charger.c+6 -171 reply
4/15twl4030_charger: use runtime_pm to keep usb phy active while charging.drivers/mfd/twl-core.c drivers/power/twl4030_charger.c+9 -182 replies
5/15twl4030_charger: trust phy to determine when USB power is available.drivers/power/twl4030_charger.c+6 -270 replies
6/15twl4030_charger: split uA calculation into a function.drivers/power/twl4030_charger.c+35 -132 replies
7/15twl4030_charger: allow fine control of charger current.drivers/power/twl4030_charger.c+153 -84 replies
8/15twl4030_charger: distinguish between USB current and 'AC' currentdrivers/power/twl4030_charger.c+25 -52 replies
9/15twl4030_charger: allow max_current to be managed via sysfs.drivers/power/twl4030_charger.c+76 -04 replies
10/15twl4030_charger: only draw USB current as negotiated with host.drivers/power/twl4030_charger.c+5 -01 reply
11/15twl4030_charger: enable manual enable/disable of usb charging.drivers/power/twl4030_charger.c+57 -03 replies
12/15twl4030_charger: add software controlled linear charging mode.drivers/power/twl4030_charger.c+52 -513 replies
13/15twl4030_charger: add ac/mode to match usb/modedrivers/power/twl4030_charger.c+30 -103 replies
14/15twl4030_charger: Increase current carefully while watching voltage.drivers/power/twl4030_charger.c+53 -12 replies
15/15twl4030_charger: assume a 'charger' can supply maximum current.drivers/power/twl4030_charger.c+3 -12 replies

Reviews trailers per patch

8 of 15 patches have a Reviewed-by or Acked-by.

PatchAndreas KemnadeLee JonesPavel Machek
1/15
2/15
3/15
4/15A-b
5/15
6/15A-b
7/15A-b
8/15A-b
9/15A-b
10/15A-b
11/15A-b
12/15Orignal-by
13/15A-b
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/15] Enhance twl4030_charger functionality.

These patches make a number of improvements to twl4030_charger.

So are just internal cleanups (e.g. use of devres). Others allow better control of charging through both manual and automatic means.

- the maximum current can be configured via sysfs.
- the charger will only draw that current if it can do so without the voltage dropping too much
- a 'continuous' mode is available which ignores voltage and just takes what it can (to be used with caution, but very useful in some circumstances).
- 'ac' and 'usb' power sources can be configured separately.

Some of this functionality requires patch to phy-twl4030-usb.c which have been sent separately.

Thanks,
NeilBrown

---

NeilBrown (15):
power_supply core: support use of devres to register/unregister a power supply.
twl4030_charger: use devm_request_threaded_irq
twl4030_charger: use devres for power_supply_register and kzalloc.
twl4030_charger: use runtime_pm to keep usb phy active while charging.
twl4030_charger: trust phy to determine when USB power is available.
twl4030_charger: split uA calculation into a function.
twl4030_charger: allow fine control of charger current.
twl4030_charger: distinguish between USB current and 'AC' current
twl4030_charger: allow max_current to be managed via sysfs.
twl4030_charger: only draw USB current as negotiated with host.
twl4030_charger: enable manual enable/disable of usb charging.
twl4030_charger: add software controlled linear charging mode.
twl4030_charger: add ac/mode to match usb/mode
twl4030_charger: Increase current carefully while watching voltage.
twl4030_charger: assume a 'charger' can supply maximum current.

 drivers/mfd/twl-core.c            |    9 -
 drivers/power/power_supply_core.c |   45 +++
 drivers/power/twl4030_charger.c   |  572 +++++++++++++++++++++++++++++++------
 include/linux/power_supply.h      |    4 
 4 files changed, 539 insertions(+), 91 deletions(-)

--
Signature