[PATCH 0/5] charger-manager: Update charger-manager to support variouscharging conditions

From: Chanwoo Choi
Date: Tue Aug 21 2012 - 04:06:29 EST


This patchset add new feature related to charging battery to complement
necessary feature for charging. This patchset include following new feature
for charging battery.

Explain implemented feature of this patchset:
- Code clean on first and second patch.
- Add support sysfs entry for charger(regulator) to control charger from user-space.
If some development board use one more chargers(regulator) for charging but
only need one charger on specific case which is dependent on user scenario
or hardware restrictions, the user enter 1 or 0(zero) to "/sys/class/power_supply
/battery/charger.[index]/externally_control". For example, if user enter 1 to
"/sys/.../charger.[index]/externally_control", this charger isn't controlled
from charger-manager and always stay off state of regulator.
- Check fully charged state of battery periodically to prevent overcharging.
- Limit maximum possible duration of charging to prevent overcharging,
also check discharging duration to maintain fully charged state of battery
and to prevent much drop voltage than given data through platform data of
charger_desc.

Chanwoo Choi (5):
charger-manager: Disable battery charging when charger cable is
detached
charger-manager: Use replacement variable to check state of battery
charger-manager: Add support sysfs entry for charger
charger-manager: Check fully charged state of battery periodically
charger-manager: Support limit of maximum possible duration for
charging/discharging

drivers/power/charger-manager.c | 437 +++++++++++++++++++++++++++++----
include/linux/power/charger-manager.h | 45 +++-
2 files changed, 429 insertions(+), 53 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/