From: Lee Jones <lee@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: James Hilliard <james.hilliard1@gmail.com>,
linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org,
conor+dt@kernel.org, mfd@lists.linux.dev, robh@kernel.org
Subject: Re: [PATCH v8 2/2] mfd: ac200: Add X-Powers AC200 support
Date: Thu, 3 Sep 2026 09:39:53 +0100 [thread overview]
Message-ID: <20260903083953.GF2133376@google.com> (raw)
In-Reply-To: <20260902194008.8FF2A1F00A3A@smtp.kernel.org>
On Wed, 02 Sep 2026, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [High] Unconditional global chip reset in shutdown/remove breaks RTC wake, Wake-on-LAN, and live PHY state.
Is that true? Needs a response from you.
> --
>
> commit d8592c963caa9b21487926208ea5815e059be1be
> Author: James Hilliard <james.hilliard1@gmail.com>
>
> mfd: ac200: Add X-Powers AC200 support
>
> This commit adds support for the X-Powers AC200 mixed-signal companion IC.
> It enables the shared input clock, initializes the paged regmap, and asserts
> a chip reset during probe, driver removal, and system shutdown.
>
> > diff --git a/drivers/mfd/ac200.c b/drivers/mfd/ac200.c
> > new file mode 100644
> > index 0000000000000..8445a460ef6c2
> > --- /dev/null
> > +++ b/drivers/mfd/ac200.c
>
> [ ... ]
>
> > +static void ac200_disable(struct regmap *regmap)
> > +{
> > + regmap_write(regmap, AC200_SYS_CONTROL_REG, 0);
> > +}
>
> [Severity: High]
> Does asserting a global chip reset here wipe the hardware state of all
> co-packaged functions, including the RTC and Fast Ethernet PHY?
>
> Since ac200_disable() is unconditionally called by ac200_shutdown() and
> ac200_remove(), could this kill the PHY and clear the RTC during system
> shutdown, breaking Wake-on-LAN and Wake-on-RTC from power-off states?
>
> Furthermore, because the PHY is enumerated separately on the MDIO bus and
> only references this MFD via a phandle, will unbinding the AC200 driver at
> runtime (via ac200_remove) forcefully reset the PHY hardware out from under
> the active MDIO PHY driver and lead to unpredictable network failures?
>
> [ ... ]
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20260902-submit-ac200-mfd-v8-0-2aa06720b8ac@gmail.com?part=2
--
Lee Jones
prev parent reply other threads:[~2026-09-03 8:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-02 19:28 [PATCH v8 0/2] mfd: add X-Powers AC200 support James Hilliard
2026-09-02 19:28 ` [PATCH v8 1/2] dt-bindings: mfd: x-powers: Add AC200 James Hilliard
2026-09-02 19:35 ` sashiko-bot
2026-09-02 19:28 ` [PATCH v8 2/2] mfd: ac200: Add X-Powers AC200 support James Hilliard
2026-09-02 19:40 ` sashiko-bot
2026-09-03 8:39 ` Lee Jones [this message]
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=20260903083953.GF2133376@google.com \
--to=lee@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=james.hilliard1@gmail.com \
--cc=linux-sunxi@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox