Re: [PATCH 2/4] power: supply: qcom_smbx: report charger state changes
From: Andrey Derkach
Date: Fri Dec 04 2026 - 17:59:51 EST
On Sat, Oct 03, 2026 at 04:45:22PM -0300, Fabricio Akio wrote:
> Nothing notifies consumers when the charging state changes on its own,
> as when a charge completes, so they can keep a stale status.
>
> Request the chg-state-change interrupt when the device tree provides
> it, and notify consumers when it fires.
Tested on a Xiaomi Mi 9 SE (SDM712, PM660) with patches 1-3 on top of
the sdm670-mainline 7.3.7 tree and the phone's device tree, which is not
upstream yet. With the battery full on the charger, the interrupt fired
when the cable was pulled, and again about a second after it was plugged
back in, when the charger went from "Not charging" back to "Full". The
usb-plugin count moved separately.
Tested-by: Andrey Derkach <gabin278@xxxxxxxxx> # Xiaomi Mi 9 SE (PM660)