linux-stable/include/linux/power
Jonghwa Lee e132fc6bb8 power: supply: charger-manager: Make decisions focussed on battery status
cm_monitor(), where charging management starts, checks various charging
condition sequentially to decide next charging operation. However, as it
follows sequential process, cascaded if statements, it does some
jobs which have already done in the previous stage. This results in a
delay in decision making. Moreover, starting point of charging is spread
all around which makes maintain code and debugging difficult.

Both of the problems mentioned above become clean if it manages battery
charging focusing on battery status not following sequential condition
checking.  Now, cm_monitor() moves battery state diagram and does the
optimal operation for current state. As a result, it reduces whole
monitoring time almost in half.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
2020-08-28 19:27:45 +02:00
..
ab8500.h
bq27xxx_battery.h power: supply: bq27xxx_battery: Add the BQ28z610 Battery monitor 2020-07-29 22:33:10 +02:00
bq2415x_charger.h power: fix duplicated words in bq2415x_charger.h 2020-07-27 00:10:14 +02:00
bq24190_charger.h
bq24735-charger.h
charger-manager.h power: supply: charger-manager: Make decisions focussed on battery status 2020-08-28 19:27:45 +02:00
generic-adc-battery.h
gpio-charger.h power: supply: gpio-charger: Convert to GPIO descriptors 2020-08-27 16:47:14 +02:00
jz4740-battery.h
max8903_charger.h
max17042_battery.h
sbs-battery.h
smartreflex.h
twl4030_madc_battery.h