]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00255111 battery: fix voltage decreased only while discharging
authorRobin Gong <b38343@freescale.com>
Mon, 25 Mar 2013 06:27:42 +0000 (14:27 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:59 +0000 (08:35 +0200)
commit34b0558080c296311037ad23d4dcaa5f31bc0cc8
tree42b06301109a2e8ab02b45bae6370a42aeff156e
parent6643002ea6f3a655535e1a7b42dda9eabc3b21e8
ENGR00255111 battery: fix voltage decreased only while discharging

If system run higher cpu loading with bigger current, such as GPU or VPU,
the voltage of battery will decrease down quickly  and rise up later.But the
battery driver only permit voltage decreasing while discharging before, in
other words, in the above case , the voltage will keep in very low level,
although the voltage will rise back again.

Now, remove the constrain in the code. Of course, with the patch, voltage will
down and rise back when run high loading user case, but it's better than
LOW ALWAYS, in worst case, the battery capacity will be 0 as test team reported

Please note :
Current battery capaity is not accurate because of hardware
design defect(ENGR00219632) on Sabresd.So please ignore the accuracy issue.

Signed-off-by: Robin Gong <b38343@freescale.com>
drivers/power/sabresd_battery.c