All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "James Hilliard" <james.hilliard1@gmail.com>
Cc: robh@kernel.org, conor+dt@kernel.org, lee@kernel.org,
	devicetree@vger.kernel.org, mfd@lists.linux.dev
Subject: Re: [PATCH net-next v4 2/4] mfd: ac200: Add X-Powers AC200 support
Date: Sat, 08 Aug 2026 04:52:08 +0000	[thread overview]
Message-ID: <20260808045209.187941F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260806-submit-acx00-of-dynamic-v1-v4-2-9bf2f7441632@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The AC200 driver resides in `drivers/mfd/` but fails to instantiate any child devices, violating MFD subsystem guidelines.
--

--- Patch [2]: [PATCH net-next v4 2/4] mfd: ac200: Add X-Powers AC200 support ---
commit c3a5907d2032837edd51cf4fc8b2fb05a159740a
Author: James Hilliard <james.hilliard1@gmail.com>

mfd: ac200: Add X-Powers AC200 support
    
This patch introduces support for the X-Powers AC200 mixed-signal companion IC.
It provides shared register map access over I2C to be used by individual
function drivers. The core driver handles initialization, clock configuration,
and resetting of the chip.

> diff --git a/drivers/mfd/ac200.c b/drivers/mfd/ac200.c
> new file mode 100644
> index 0000000000000..798bb4173b14b
> --- /dev/null
> +++ b/drivers/mfd/ac200.c
[ ... ]
> +static int ac200_probe(struct i2c_client *client)
> +{
[ ... ]
> +	ret = regmap_write(ddata->regmap, AC200_SYS_CONTROL_REG, 0);
> +	if (ret)
> +		return ret;
> +
> +	ret = regmap_write(ddata->regmap, AC200_SYS_CONTROL_REG,
> +			   AC200_SYS_CONTROL_CHIP_RESET_DEASSERT);
> +	if (ret)
> +		return ret;
> +
> +	return 0;
> +}

[Severity: Low]
Should this driver reside in drivers/mfd/ if it doesn't instantiate any child
devices?

The MFD subsystem guidelines explicitly state that placing a driver in
drivers/mfd/ is only permitted for devices that register multiple children
via the MFD API or of_platform_populate(). Here, ac200_probe() completes
successfully without calling devm_mfd_add_devices() or
devm_of_platform_populate().

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260806-submit-acx00-of-dynamic-v1-v4-0-9bf2f7441632@gmail.com?part=2

  reply	other threads:[~2026-08-08  4:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-07  4:51 [PATCH net-next v4 0/4] net: phy: add X-Powers AC200/AC300 EPHY support James Hilliard
2026-08-07  4:51 ` [PATCH net-next v4 1/4] dt-bindings: mfd: x-powers: Add AC200 James Hilliard
2026-08-08  4:52   ` sashiko-bot
2026-08-09 15:34   ` Andrew Lunn
2026-08-09 19:33     ` James Hilliard
2026-08-09 20:48       ` Andrew Lunn
2026-08-07  4:51 ` [PATCH net-next v4 2/4] mfd: ac200: Add X-Powers AC200 support James Hilliard
2026-08-08  4:52   ` sashiko-bot [this message]
2026-08-07  4:51 ` [PATCH net-next v4 3/4] dt-bindings: net: x-powers: add AC200/AC300 EPHY packages James Hilliard
2026-08-08  4:52   ` sashiko-bot
2026-08-07  4:51 ` [PATCH net-next v4 4/4] net: phy: add X-Powers AC200/AC300 EPHY driver James Hilliard
2026-08-08  4:52   ` sashiko-bot
2026-08-09 15:50   ` Andrew Lunn
2026-08-09 20:29     ` James Hilliard

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=20260808045209.187941F00A3D@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=james.hilliard1@gmail.com \
    --cc=lee@kernel.org \
    --cc=mfd@lists.linux.dev \
    --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 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.