Files
kernel_google_redbull/drivers/power
Jack Wu d53de1d3b2 google_battery: fix no charging issue
There were still a little bit of negative IBAT value via ADC
in not-charging case due to using the external Rsense.
This made IBAT less than next_cc_max and fv_uv kept
bumping up to the max one.

Fix this by setting a small negative current(ibat_zero_offset)
as the threshold (instead of 0uA) and entering MSC_DSG for
"not-charging" case.

Bug: 159100733
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: Ia56c972ba62a41ab4dae437973b4968df4e8ea51
2020-06-19 13:22:40 +00:00
..