Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 0/4] power: supply: qcom_smbx: report charger state changes
@ 2026-10-03 19:45 Fabricio Akio via B4 Relay
  2026-10-03 19:45 ` [PATCH 1/4] dt-bindings: power: supply: qcom,pmi8998-charger: add chg-state-change Fabricio Akio via B4 Relay
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Fabricio Akio via B4 Relay @ 2026-10-03 19:45 UTC (permalink / raw)
  To: Casey Connolly, Sebastian Reichel, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio,
	Abel Vesa
  Cc: Robin Snyders, David Heidelberg, phone-devel, Richard Acayan,
	linux-arm-msm, linux-pm, devicetree, linux-kernel,
	Sebastian Reichel, Fabricio Akio

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@gmail.com>



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-12-04 22:59 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-03 19:45 [PATCH 0/4] power: supply: qcom_smbx: report charger state changes Fabricio Akio via B4 Relay
2026-10-03 19:45 ` [PATCH 1/4] dt-bindings: power: supply: qcom,pmi8998-charger: add chg-state-change Fabricio Akio via B4 Relay
2026-10-04  8:06   ` Krzysztof Kozlowski
2026-10-04 11:58     ` Fabricio Akio
2026-10-09  6:53   ` Krzysztof Kozlowski
2026-10-03 19:45 ` [PATCH 2/4] power: supply: qcom_smbx: report charger state changes Fabricio Akio via B4 Relay
2026-10-22 22:46   ` Alexey Minnekhanov
2026-12-04 22:59   ` Andrey Derkach
2026-10-03 19:45 ` [PATCH 3/4] arm64: dts: qcom: pm660: Add the charger state change interrupt Fabricio Akio via B4 Relay
2026-10-22 23:01   ` Alexey Minnekhanov
2026-12-04 22:59   ` Andrey Derkach
2026-10-03 19:45 ` [PATCH 4/4] arm64: dts: qcom: pmi8998: " Fabricio Akio via B4 Relay
2026-10-27  8:22 ` [PATCH 0/4] power: supply: qcom_smbx: report charger state changes Adrian Nguyen
2026-11-09  1:22 ` (subset) " Sebastian Reichel
2026-12-04 19:42 ` Bjorn Andersson
2026-12-04 20:32   ` David Heidelberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox