mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
power: rk817_battery: fix battery not update after resume
Signed-off-by: Chen Shunqing <csq@rock-chips.com> Change-Id: I305a6957d0e5e324cf6d5dee204d5f54de524336
This commit is contained in:
parent
85c6fda3fc
commit
7aeb078365
|
|
@ -3135,7 +3135,8 @@ static int rk817_bat_pm_suspend(struct device *dev)
|
|||
*/
|
||||
if (battery->sleep_chrg_status == CHARGE_FINISH) {
|
||||
battery->work_mode = MODE_FINISH;
|
||||
battery->finish_base = get_boot_sec();
|
||||
if (!battery->finish_base)
|
||||
battery->finish_base = get_boot_sec();
|
||||
} else {
|
||||
battery->work_mode = MODE_SMOOTH;
|
||||
rk817_bat_smooth_algo_prepare(battery);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user