From: sashiko-bot@kernel.org
To: "Robin Snyders" <robin@snyders.xyz>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 3/3] power: supply: qcom_smbx: program AICL rerun time
Date: Tue, 11 Aug 2026 20:46:50 +0000 [thread overview]
Message-ID: <20260811204650.868241F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260811-submit-qcom-smbx-send-v1-v1-3-feec6cfa123a@snyders.xyz>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] The watchdog interrupt handler writes to a register without adding the peripheral base address.
--
--- Patch [3]: [PATCH 3/3] power: supply: qcom_smbx: program AICL rerun time ---
commit 7ed13fc0edf8d350c9eda801c5d3ae1f45ee12b6
Author: Casey Connolly <casey.connolly@linaro.org>
power: supply: qcom_smbx: program AICL rerun time
The bootloader-provided automatic input current limit rerun interval is
not a stable software interface. Program a consistent three-second
interval during probe. This is required at least on SMB5 hardware.
> diff --git a/drivers/power/supply/qcom_smbx.c b/drivers/power/supply/qcom_smbx.c
> index 09d9e0f95cb56..9e3e240b68130 100644
> --- a/drivers/power/supply/qcom_smbx.c
> +++ b/drivers/power/supply/qcom_smbx.c
[ ... ]
> @@ -1384,6 +1385,14 @@ static int smb_probe(struct platform_device *pdev)
>
> platform_set_drvdata(pdev, chip);
>
> + rc = regmap_write_bits(chip->regmap,
> + chip->base + AICL_RERUN_TIME_CFG,
[Severity: High]
This is a pre-existing issue, but seeing the correct usage of chip->base
here, is the regmap write in smb_handle_wdog_bark() writing to an arbitrary
PMIC peripheral?
drivers/power/supply/qcom_smbx.c:smb_handle_wdog_bark() {
...
rc = regmap_write(chip->regmap, BARK_BITE_WDOG_PET,
BARK_BITE_WDOG_PET_BIT);
...
}
It appears to be missing chip->base, which could fail to pet the charger
watchdog and corrupt the state of another peripheral when the watchdog bark
interrupt fires.
> + AICL_RERUN_TIME_MASK,
> + AICL_RERUN_TIME_3_SECS);
> + if (rc < 0)
> + return dev_err_probe(chip->dev, rc,
> + "could not set AICL rerun time\n");
> +
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260811-submit-qcom-smbx-send-v1-v1-0-feec6cfa123a@snyders.xyz?part=3
next prev parent reply other threads:[~2026-08-11 20:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-11 20:35 [PATCH 0/3] power: supply: qcom_smbx: add SMB5 support Robin Snyders via B4 Relay
2026-08-11 20:35 ` Robin Snyders
2026-08-11 20:35 ` [PATCH 1/3] dt-bindings: power: supply: qcom,pmi8998-charger: add SMB5 PMICs Robin Snyders via B4 Relay
2026-08-11 20:35 ` Robin Snyders
2026-08-11 20:35 ` [PATCH 2/3] power: supply: qcom_smbx: add SMB5 support Robin Snyders via B4 Relay
2026-08-11 20:35 ` Robin Snyders
2026-08-11 20:51 ` sashiko-bot
2026-08-11 20:35 ` [PATCH 3/3] power: supply: qcom_smbx: program AICL rerun time Robin Snyders via B4 Relay
2026-08-11 20:35 ` Robin Snyders
2026-08-11 20:46 ` sashiko-bot [this message]
2026-08-11 23:56 ` [PATCH v2 0/2] power: supply: qcom_smbx: add SMB5 support Robin Snyders via B4 Relay
2026-08-11 23:56 ` Robin Snyders
2026-08-11 23:56 ` [PATCH v2 1/2] dt-bindings: power: supply: qcom,pmi8998-charger: add SMB5 PMICs Robin Snyders via B4 Relay
2026-08-11 23:56 ` Robin Snyders
2026-08-11 23:57 ` [PATCH v2 2/2] power: supply: qcom_smbx: add SMB5 support Robin Snyders via B4 Relay
2026-08-11 23:57 ` Robin Snyders
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=20260811204650.868241F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=robin@snyders.xyz \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.