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
..
2020-06-15 15:36:42 +08:00
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-01-04 19:13:12 +01:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-06-18 05:45:54 +00:00
2020-06-15 15:36:42 +08:00
2020-05-30 02:15:03 +08:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-05-30 02:28:19 +08:00
2020-06-15 15:36:42 +08:00
2020-05-28 18:06:23 +05:30
2020-05-30 02:15:03 +08:00
2020-06-15 15:36:42 +08:00
2020-01-09 10:19:09 +01:00
2020-06-15 15:36:42 +08:00
2020-05-28 18:06:23 +05:30
2019-12-19 22:51:54 +00:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-05-30 02:28:19 +08:00
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-06-08 17:26:42 +08:00
2020-06-15 15:36:42 +08:00
2020-05-30 02:15:03 +08:00
2020-05-28 18:07:10 +05:30
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-05-30 02:18:38 +08:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2019-12-17 20:34:33 +01:00
2020-06-15 15:36:42 +08:00
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-06-15 15:39:53 +08:00
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-05-30 02:19:31 +08:00
2019-12-31 16:36:01 +01:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-06-19 13:22:40 +00:00
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-05-30 02:32:35 +08:00
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-05-30 02:16:27 +08:00
2020-06-15 15:36:42 +08:00
2019-12-31 16:35:55 +01:00
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-06-18 02:29:29 +00:00
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-06-15 15:36:42 +08:00
2020-06-18 13:14:19 +00:00
2020-05-30 02:15:03 +08:00
2020-05-28 18:06:23 +05:30
2020-06-15 15:36:42 +08:00
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30
2020-05-28 18:06:23 +05:30