From: Paul Kocialkowski <paulk@sys-base.io>
To: Marek Vasut <marek.vasut@mailbox.org>
Cc: Sky Huang <SkyLake.Huang@mediatek.com>,
Joe Hershberger <joe.hershberger@ni.com>,
Ramon Fried <rfried.dev@gmail.com>, Tom Rini <trini@konsulko.com>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Eugeniu Rosca <erosca@de.adit-jv.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Jacky Chou <jacky_chou@aspeedtech.com>,
u-boot@lists.denx.de, gss_mtk_uboot_upstream@mediatek.com
Subject: Re: [PATCH 1/1] net: phy: Do not do CL22 phy reset before ethernet phy driver probe
Date: Tue, 5 Aug 2025 20:00:29 +0200 [thread overview]
Message-ID: <aJJGvQpoYUWWjwrB@collins> (raw)
In-Reply-To: <3d811dec-d233-4e6d-bcc7-ac07c915e68a@mailbox.org>
[-- Attachment #1: Type: text/plain, Size: 2113 bytes --]
Hi,
Le Mon 14 Oct 24, 10:43, Marek Vasut a écrit :
> On 10/14/24 9:06 AM, Sky Huang wrote:
> > From: "SkyLake.Huang" <skylake.huang@mediatek.com>
> >
> > Remove unnecessary CL22 phy reset before ethernet phy driver
> > probe. Lots of ethernet phys requires driver to load firmware.
> > Before that, CL22 phy reset may lead to malfunction.
> >
> > Signed-off-by: SkyLake.Huang <skylake.huang@mediatek.com>
> > ---
> > drivers/net/phy/phy.c | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
> > index 716a1d46111..e6fed8c41d7 100644
> > --- a/drivers/net/phy/phy.c
> > +++ b/drivers/net/phy/phy.c
> > @@ -839,8 +839,6 @@ struct phy_device *phy_find_by_mask(struct mii_dev *bus, uint phy_mask)
> > static void phy_connect_dev(struct phy_device *phydev, struct udevice *dev,
> > phy_interface_t interface)
> > {
> > - /* Soft Reset the PHY */
> > - phy_reset(phydev);
> > if (phydev->dev && phydev->dev != dev) {
> > printf("%s:%d is connected to %s. Reconnecting to %s\n",
> > phydev->bus->name, phydev->addr,
>
> This needs clarification and likely has to be handled differently. Removing
> the reset would leave the PHY in potentially undefined state.
>
> Which PHY is affected by this ?
Good hunch. I just bisected down to this commit as I had some issues with my
Allwinner V3 board using the internal CL22 PHY. The symptom is that the LEDS's
polarity was inverted. Network still seems to work (although not tested beyond
ping).
This change can have very significant consequences in general, which were not
explored at all in the commit. This may break many boards that do rely on that
PHY reset, in various scenarios and for various reasons.
I think it should be reverted as soon as possible to restore previous behavior.
All the best,
Paul
--
Paul Kocialkowski,
Independent contractor - sys-base - https://www.sys-base.io/
Free software developer - https://www.paulk.fr/
Expert in multimedia, graphics and embedded hardware support with Linux.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2025-08-05 18:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-14 7:06 [PATCH 1/1] net: phy: Do not do CL22 phy reset before ethernet phy driver probe Sky Huang
2024-10-14 8:43 ` Marek Vasut
2025-08-05 18:00 ` Paul Kocialkowski [this message]
2025-10-26 15:43 ` Tom Rini
2025-10-26 15:56 ` Marek Vasut
2025-10-26 17:32 ` Paul Kocialkowski
2025-10-26 17:55 ` Tom Rini
2025-05-23 22:26 ` Tom Rini
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=aJJGvQpoYUWWjwrB@collins \
--to=paulk@sys-base.io \
--cc=SkyLake.Huang@mediatek.com \
--cc=erosca@de.adit-jv.com \
--cc=gss_mtk_uboot_upstream@mediatek.com \
--cc=jacky_chou@aspeedtech.com \
--cc=joe.hershberger@ni.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=marek.vasut@mailbox.org \
--cc=rfried.dev@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/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.