Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jerome Brunet" <jbrunet@baylibre.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v6 4/5] mfd: axp20x: Add support for AXP318W PMIC
Date: Fri, 31 Jul 2026 14:53:01 +0000	[thread overview]
Message-ID: <20260731145301.A12671F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260731-axp318-regulator-v6-4-b4e745552a35@baylibre.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The `axp318_cells` array defines the `axp20x-regulator` cell with a hard-coded ID of 1 instead of using `PLATFORM_DEVID_AUTO`, violating MFD subsystem guidelines.
--

--- Patch [4]: [PATCH v6 4/5] mfd: axp20x: Add support for AXP318W PMIC ---
commit a5dbdb5469c59acc76c36e5d6f37cd6f060e0f47
Author: Andre Przywara <andre.przywara@arm.com>

mfd: axp20x: Add support for AXP318W PMIC

This commit adds support for the AXP318W PMIC to the axp20x MFD core and
I2C driver. It exposes the device's regulators and interrupts.

> 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: Medium]
Does this hard-coded ID of 1 risk sysfs naming collisions?

The MFD subsystem guidelines recommend using PLATFORM_DEVID_AUTO for
automatic cell indexing. If multiple devices share this explicit ID, it could
lead to duplicate device names in sysfs (e.g., axp20x-regulator.1) and
subsequent driver load failures.

> +};
> +
>  static const struct mfd_cell axp717_cells[] = {
>  	MFD_CELL_NAME("axp20x-regulator"),
>  	MFD_CELL_RES("axp20x-pek", axp717_pek_resources),

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260731-axp318-regulator-v6-0-b4e745552a35@baylibre.com?part=4

  reply	other threads:[~2026-07-31 14:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-31 14:43 [PATCH v6 0/5] regulator: Add X-Powers AXP318W PMIC support Jerome Brunet
2026-07-31 14:43 ` [PATCH v6 1/5] mfd: axp20x: Constify axp313 and axp717 cells Jerome Brunet
2026-07-31 14:43 ` [PATCH v6 2/5] mfd: axp20x-i2c: Fix i2c instantiation Jerome Brunet
2026-07-31 14:43 ` [PATCH v6 3/5] dt-bindings: mfd: x-powers,axp152: Document AXP318W Jerome Brunet
2026-07-31 14:53   ` sashiko-bot
2026-07-31 15:42     ` Jerome Brunet
2026-07-31 14:43 ` [PATCH v6 4/5] mfd: axp20x: Add support for AXP318W PMIC Jerome Brunet
2026-07-31 14:53   ` sashiko-bot [this message]
2026-07-31 15:45     ` Jerome Brunet
2026-07-31 14:43 ` [PATCH v6 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=20260731145301.A12671F00A3A@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