]> git.baikalelectronics.ru Git - kernel.git/commit
ab8500_bm: Recharge condition not optimal for battery
authorMarcus Cooper <marcus.xm.cooper@stericsson.com>
Fri, 11 Jan 2013 13:12:54 +0000 (13:12 +0000)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 16 Jan 2013 01:43:46 +0000 (17:43 -0800)
commit27c6207437fa7f719e9015849699441af2a99c9f
tree0411f756d15ee826c05a603e1218125a0410fcc0
parent6afc3a69b234b23c9c5df45d1dafa41c6ec4dede
ab8500_bm: Recharge condition not optimal for battery

Today the battery recharge is determined with a voltage threshold. This
voltage threshold is only valid when the battery is relaxed. In charging
algorithm the voltage read is the loaded battery voltage and no
compensation is done to get the relaxed voltage. When maintenance
charging is not selected, this makes the recharging condition to almost
immediately activate when there is a discharge present on the battery.

Depending on which vendor the battery comes from this behavior can wear
out the battery much faster than normal.

The fuelgauge driver is responsible to monitor the actual battery
capacity and is able to estimate the remaining capacity. It is better to
use the remaining capacity as a limit to determine when battery should
be recharged.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Marcus Cooper <marcus.xm.cooper@stericsson.com>
Reviewed-by: Hakan BERG <hakan.berg@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/ab8500_bmdata.c
drivers/power/ab8500_fg.c
drivers/power/abx500_chargalg.c
include/linux/mfd/abx500.h
include/linux/mfd/abx500/ab8500-bm.h