[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aJ9y_ETT9j82BzWk@pidgin.makrotopia.org>
Date: Fri, 15 Aug 2025 18:48:44 +0100
From: Daniel Golle <daniel@...rotopia.org>
To: Andrew Lunn <andrew@...n.ch>
Cc: Xu Liang <lxu@...linear.com>, Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 2/2] net: phy: mxl-86110: add basic support for
MxL86111 PHY
On Fri, Aug 15, 2025 at 07:34:05PM +0200, Andrew Lunn wrote:
> > + /* For fiber forced mode, power down/up to re-aneg */
> > + if (modes != LINK_INBAND_DISABLE) {
> > + __phy_modify(phydev, MII_BMCR, 0, BMCR_PDOWN);
> > + usleep_range(1000, 1050);
> > + __phy_modify(phydev, MII_BMCR, BMCR_PDOWN, 0);
> > + }
>
> Is a full power down required? To restart autoneg all you normally
> need to do it set BMCR_ANRESTART. See genphy_restart_aneg().
According to the vendor driver a full power down is required when
enabling in-band-an on the SerDes interface. BMCR_ANRESTART only
affects the UTP interface apparently.
>
> > @@ -648,8 +928,24 @@ static struct phy_driver mxl_phy_drvs[] = {
> > .set_wol = mxl86110_set_wol,
> > .led_brightness_set = mxl86110_led_brightness_set,
> > .led_hw_is_supported = mxl86110_led_hw_is_supported,
> > - .led_hw_control_get = mxl86110_led_hw_control_get,
> > - .led_hw_control_set = mxl86110_led_hw_control_set,
> > + .led_hw_control_get = mxl86110_led_hw_control_get,
> > + .led_hw_control_set = mxl86110_led_hw_control_set,
>
> That should really be in a different patch.
Ok, I will break it out into a patch prepending the other two.
Powered by blists - more mailing lists