From: sashiko-bot@kernel.org
To: "Vladyslav Tymoshchuk" <tvlad744@gmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH v2 5/5] power: supply: qcom_battmgr: Allow charger changes to wake up the system
Date: Sun, 29 Nov 2026 14:00:21 +0000 [thread overview]
Message-ID: <sashiko-outbox-239668@kernel.org> (raw)
In-Reply-To: <20261129134442.579-6-tvlad744@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] power: supply: qcom_battmgr: missing TAOYAO variant in
qcom_battmgr_probe()
--
commit 986e08901fb06b02155aeb9b0186523faacf2862
Author: Vladyslav Tymoshchuk <tvlad744@gmail.com>
power: supply: qcom_battmgr: Allow charger changes to wake up the system
This commit marks the battery manager device as wakeup-capable on SM8350
and SM8550 variants and registers a PMIC GLINK wakeup filter for USB and
wireless charger property notifications.
> diff --git a/drivers/power/supply/qcom_battmgr.c b/drivers/power/supply/qcom_battmgr.c
> index 69473ea753f66..9902192b29218 100644
> --- a/drivers/power/supply/qcom_battmgr.c
> +++ b/drivers/power/supply/qcom_battmgr.c
[ ... ]
> @@ -1896,6 +1911,13 @@ static int qcom_battmgr_probe(struct auxiliary_device *adev,
> if (ret)
> return ret;
>
> + if (battmgr->variant == QCOM_BATTMGR_SM8350 ||
> + battmgr->variant == QCOM_BATTMGR_SM8550) {
> + device_set_wakeup_capable(dev, true);
> + pmic_glink_client_set_wakeup_filter(battmgr->client,
> + qcom_battmgr_is_charger_notification);
> + }
[Severity: Medium]
Should this condition also include QCOM_BATTMGR_TAOYAO (or check that
battmgr->variant is neither QCOM_BATTMGR_SC8280XP nor
QCOM_BATTMGR_X1E80100, matching the rest of the driver)?
QCOM_BATTMGR_TAOYAO uses the SM8350 firmware protocol, registers
sm8350_usb_psy_desc and sm8350_wls_psy_desc, and receives
NOTIF_USB_PROPERTY and NOTIF_WLS_PROPERTY notifications, so excluding it
leaves charger wakeup unavailable on xiaomi,taoyao-pmic-glink platforms.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261129134442.579-1-tvlad744@gmail.com?part=5
next prev parent reply other threads:[~2026-11-29 14:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 13:44 [PATCH v2 0/5] soc: qcom: pmic_glink: Deliver notifications from a freezable workqueue Vladyslav Tymoshchuk
2026-11-29 13:44 ` [PATCH v2 1/5] usb: typec: ucsi: glink: Handle a restart of the remote before the work runs Vladyslav Tymoshchuk
2026-11-29 14:01 ` sashiko-bot
2026-11-29 13:44 ` [PATCH v2 2/5] soc: qcom: pmic_glink: Deliver notifications from a freezable workqueue Vladyslav Tymoshchuk
2026-11-29 13:44 ` [PATCH v2 3/5] soc: qcom: pmic_glink: Report wakeup events on behalf of clients Vladyslav Tymoshchuk
2026-11-29 13:44 ` [PATCH v2 4/5] usb: typec: ucsi: glink: Wake up the system on connector changes Vladyslav Tymoshchuk
2026-11-29 13:44 ` [PATCH v2 5/5] power: supply: qcom_battmgr: Allow charger changes to wake up the system Vladyslav Tymoshchuk
2026-11-29 14:00 ` sashiko-bot [this message]
2026-11-29 14:01 ` [PATCH v2 0/5] soc: qcom: pmic_glink: Deliver notifications from a freezable workqueue sashiko-bot
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=sashiko-outbox-239668@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=tvlad744@gmail.com \
/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