Some fixes and improvments for cpcap battery and charger
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | power: supply: cpcap-battery: Fix division by zerodrivers/ | +3 | 1 reply | |
| 2/7 | power: supply: cpcap-battery: Fix low battery checkdrivers/ | +2 | 1 reply | |
| 3/7 | power: supply: cpcap-battery: Fix signed counter sample registerdrivers/ | +6 | 1 reply | |
| 4/7 | power: supply: cpcap-battery: Fix coulomb counter calibration register usedrivers/ | +7 | 1 reply | |
| 5/7 | power: supply: cpcap-battery: Use accumulator for current and power averagedrivers/ | +4 | 0 replies | |
| 6/7 | power: supply: cpcap-battery: Fix pointless EPROBE_DEFER warningsdrivers/ | +3 | 1 reply | |
| 7/7 | power: supply: cpcap-charger: Fix pointless EPROBE_DEFER warningsdrivers/ | +3 | 0 replies |
Reviews trailers per patch
4 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Pavel Machek |
|---|---|
| 1/7 | A-b |
| 2/7 | A-b |
| 3/7 | A-b |
| 4/7 | A-b |
| 5/7 | |
| 6/7 | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7] Some fixes and improvments for cpcap battery and charger
Hi all,
I've been trying to figure out how come the coulomb counter on droid 4 is off especially for the low power consumption values. Turns out the "coulomb counter" values correlate better with average power consumption if we divide the value with number of samples. Otherwise we have a curve instead of flat correlation between the register values and power consumed. I have some patches coming up eventually to fix that, but meanwhile I've noticed some minor issues in general that would be good to have out of the way.
I've only tagged the first one with fixes tag, the other ones can certainly wait for the merge window considering further changes are needed at least for low power consumption values.
Regards,
Tony
Tony Lindgren (7):
power: supply: cpcap-battery: Fix division by zero
power: supply: cpcap-battery: Fix low battery check
power: supply: cpcap-battery: Fix signed counter sample register
power: supply: cpcap-battery: Fix coulomb counter calibration register
use
power: supply: cpcap-battery: Use accumulator for current and power
average
power: supply: cpcap-battery: Fix pointless EPROBE_DEFER warnings
power: supply: cpcap-charger: Fix pointless EPROBE_DEFER warnings
drivers/power/supply/cpcap-battery.c | 45 +++++++++++++++------------- drivers/power/supply/cpcap-charger.c | 5 ++-- 2 files changed, 27 insertions(+), 23 deletions(-)
Signature · 1 line
2.21.0