mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
power: supply: rk818-battery: Don't reset dsoc to 0 on rk818_vb_low_irq
The interrupt fires at 3.4V vbat which is not equivalent to 0% charge. Signed-off-by: Ondrej Jirman <megi@xff.cz>
This commit is contained in:
committed by
Mauro (mdrjr) Ribeiro
parent
281bbaf6ed
commit
06570e0830
@@ -2930,7 +2930,6 @@ static irqreturn_t rk818_vb_low_irq(int irq, void *bat)
|
||||
{
|
||||
struct rk818_battery *di = (struct rk818_battery *)bat;
|
||||
|
||||
di->dsoc = 0;
|
||||
rk_send_wakeup_key();
|
||||
BAT_INFO("lower power yet, power off system! v=%d, c=%d, dsoc=%d\n",
|
||||
di->voltage_avg, di->current_avg, di->dsoc);
|
||||
|
||||
Reference in New Issue
Block a user