diff options
| author | Yauhen Kharuzhy <[email protected]> | 2022-02-01 14:06:49 +0100 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2022-02-01 14:55:11 +0100 |
| commit | c562a43a460fbd582fba0e7e4d3f09cef48d65b1 (patch) | |
| tree | b1e0952ceab01d825fc68bf5e54364317e09d253 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 766873c139a9185f2ee33c434df85140d67356d1 (diff) | |
power: supply: bq25890: Reduce reported CONSTANT_CHARGE_CURRENT_MAX for low temperatures
Take into account possible current reduction due to low-temperature when
reading POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX. As described in
the datasheet in cool (0-20° Celcius) conditions the current limit is
decreased to 20% or 50% of ICHG field value depended on JEITA_ISET field.
Also add NTC_FAULT field value to the debug message in
bq25890_get_chip_state().
Changed by Hans de Goede:
- Fix reading F_CHG_FAULT instead of F_NTC_FIELD for state->ntc_fault
- Only read JEITA_ISET field if necessary
- Tweak commit message a bit
Signed-off-by: Yauhen Kharuzhy <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Co-developed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions