[PATCH 0/4] power: supply: qcom_smbx: report charger state changes
From: Fabricio Akio via B4 Relay
Date: Sat Oct 03 2026 - 15:47:39 EST
qcom_smbx does not handle the charger's chg-state-change interrupt, so
a charge completing is not notified and consumers can keep a stale
status. Allow the interrupt in the binding, handle it in the driver,
and describe it for PM660 and PMI8998.
Tested on a Motorola Moto X4 (PM660) with the sdm660-mainline 7.2.3
tree: each charging-state change is notified and the battery status
follows. The PMI8998 patch is untested on hardware.
Robin Snyders' pending SMB5 series touches the same binding and
driver; whichever lands second needs a rebase.
---
Fabricio Akio (4):
dt-bindings: power: supply: qcom,pmi8998-charger: add chg-state-change
power: supply: qcom_smbx: report charger state changes
arm64: dts: qcom: pm660: Add the charger state change interrupt
arm64: dts: qcom: pmi8998: Add the charger state change interrupt
.../power/supply/qcom,pmi8998-charger.yaml | 5 ++++-
arch/arm64/boot/dts/qcom/pm660.dtsi | 9 ++++++--
arch/arm64/boot/dts/qcom/pmi8998.dtsi | 6 ++++--
drivers/power/supply/qcom_smbx.c | 24 ++++++++++++++++++++++
4 files changed, 39 insertions(+), 5 deletions(-)
---
base-commit: 9f24d789f03b22941b905ded43cb5ff8eea9ce62
change-id: 20261003-qcom-smbx-chg-state-change-343c9b88ca5e
Best regards,
--
Fabricio Akio <fabricioakio@xxxxxxxxx>