Linux Power Management development
 help / color / mirror / Atom feed
From: Andrey Derkach <gabin278@gmail.com>
To: Fabricio Akio <fabricioakio@gmail.com>
Cc: Casey Connolly <casey.connolly@linaro.org>,
	Sebastian Reichel <sre@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>,
	Robin Snyders <robin@snyders.xyz>,
	David Heidelberg <david@ixit.cz>,
	Richard Acayan <mailingradian@gmail.com>,
	Sebastian Reichel <sebastian.reichel@collabora.com>,
	phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/4] power: supply: qcom_smbx: report charger state changes
Date: Sat,  5 Dec 2026 00:59:25 +0200	[thread overview]
Message-ID: <20261204225926.630082-1-gabin278@gmail.com> (raw)
In-Reply-To: <20261003-qcom-smbx-chg-state-change-v1-2-fffaef446932@gmail.com>

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@gmail.com> # Xiaomi Mi 9 SE (PM660)

  parent reply	other threads:[~2026-12-04 22:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204225926.630082-1-gabin278@gmail.com \
    --to=gabin278@gmail.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=casey.connolly@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=david@ixit.cz \
    --cc=devicetree@vger.kernel.org \
    --cc=fabricioakio@gmail.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mailingradian@gmail.com \
    --cc=phone-devel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=robin@snyders.xyz \
    --cc=sebastian.reichel@collabora.com \
    --cc=sre@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox