From: sashiko-bot@kernel.org
To: "Jerome Brunet" <jbrunet@baylibre.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v5 4/5] mfd: axp20x: Add support for AXP318W PMIC
Date: Mon, 20 Jul 2026 11:33:03 +0000 [thread overview]
Message-ID: <20260720113304.4E2441F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260720-axp318-regulator-v5-4-a1afa7ee24f9@baylibre.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The MFD cell array `axp318_cells` hard-codes the MFD cell ID to 1 instead of using `PLATFORM_DEVID_AUTO`, violating MFD subsystem guidelines.
--
--- Patch [4]: [PATCH v5 4/5] mfd: axp20x: Add support for AXP318W PMIC ---
commit 76c82c1e91d9894a1be9b93884198b1f956c4a6b
Author: Andre Przywara <andre.przywara@arm.com>
mfd: axp20x: Add support for AXP318W PMIC
This commit adds support for the X-Powers AXP318W PMIC to the axp20x driver.
It describes the regmap and MFD bits, and exposes the regulator and interrupt
registers via I2C.
> diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
> --- a/drivers/mfd/axp20x.c
> +++ b/drivers/mfd/axp20x.c
[ ... ]
> @@ -1061,6 +1129,10 @@ static const struct mfd_cell axp313a_cells[] = {
> MFD_CELL_RES("axp313a-pek", axp313a_pek_resources),
> };
>
> +static const struct mfd_cell axp318_cells[] = {
> + MFD_CELL_BASIC("axp20x-regulator", NULL, NULL, 0, 1),
[Severity: High]
Does this hard-coded MFD cell ID cause naming collisions in sysfs?
Setting the cell ID to 1 instead of using PLATFORM_DEVID_AUTO can cause
device registration to fail due to a name collision on axp20x-regulator.1
if multiple MFDs defining the same cell name and ID are instantiated on the
same system.
> +};
> +
> static const struct mfd_cell axp717_cells[] = {
> MFD_CELL_NAME("axp20x-regulator"),
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260720-axp318-regulator-v5-0-a1afa7ee24f9@baylibre.com?part=4
next prev parent reply other threads:[~2026-07-20 11:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 11:20 [PATCH v5 0/5] regulator: Add X-Powers AXP318W PMIC support Jerome Brunet
2026-07-20 11:20 ` [PATCH v5 1/5] mfd: axp20x: Constify axp313 and axp717 cells Jerome Brunet
2026-07-20 14:50 ` Chen-Yu Tsai
2026-07-20 11:20 ` [PATCH v5 2/5] mfd: axp20x-i2c: Fix i2c instantiation Jerome Brunet
2026-07-20 14:52 ` Chen-Yu Tsai
2026-07-20 11:20 ` [PATCH v5 3/5] dt-bindings: mfd: x-powers,axp152: Document AXP318W Jerome Brunet
2026-07-20 11:40 ` sashiko-bot
2026-07-20 11:20 ` [PATCH v5 4/5] mfd: axp20x: Add support for AXP318W PMIC Jerome Brunet
2026-07-20 11:33 ` sashiko-bot [this message]
2026-07-20 11:20 ` [PATCH v5 5/5] regulator: axp20x: add support for the AXP318W Jerome Brunet
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=20260720113304.4E2441F00A3D@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet@baylibre.com \
--cc=robh@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox