Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c793aa8 authored by Shilpa Suresh's avatar Shilpa Suresh Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-linear-charger: Fix charger UI updation issue



Move power_supply_changed call outside the if check in
fastchg_irq_handler. This handles the case when the irq
is fired before the fastchg_irq is registered by the driver
during bootup. The change ensures uvents are sent out whenever
the irq handler is dispatched.

Change-Id: Iffba58dcf140a98edb1432ac35cd9dd6f8023b3d
Signed-off-by: default avatarShilpa Suresh <sbsure@codeaurora.org>
parent a85adef2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2799,12 +2799,12 @@ static irqreturn_t qpnp_lbc_fastchg_irq_handler(int irq, void *_chip)
							kt);
			}
		}
	}

	if (chip->bat_if_base) {
		pr_debug("power supply changed batt_psy\n");
		power_supply_changed(chip->batt_psy);
	}
	}

	return IRQ_HANDLED;
}