[PATCH net-next 3/6] net: phylink: add phylink managed MAC Wake-on-Lan support
Russell King (Oracle)
linux at armlinux.org.uk
Wed Oct 22 11:23:24 PDT 2025
On Wed, Oct 22, 2025 at 04:06:00PM +0200, Maxime Chevallier wrote:
> > int phylink_ethtool_set_wol(struct phylink *pl, struct ethtool_wolinfo *wol)
> > {
> > + struct ethtool_wolinfo w;
...
> > + phy_ethtool_get_wol(pl->phydev, &w);
> > +
> > + /* Any Wake-on-Lan modes which the PHY is handling
> > + * should not be passed on to the MAC.
> > + */
> > + wolopts &= ~w.wolopts;
>
> When PHY drivers gets converted to the new model, we'll have to look at
> how the .get_wol() behave WRT how they fill-in their wolopts.
>
> The Broadcom driver for example may not set w.wolopts to 0 :
>
> https://elixir.bootlin.com/linux/v6.17.4/source/drivers/net/phy/broadcom.c#L1121
>
> You'd probably end-up with garbage here then. But not blocking for your series.
Good point. We should initialise 'w' in the same way other users do, so:
+ struct ethtool_wolinfo w = { .cmd = ETHTOOL_GWOL };
Does your r-b still stand with this change?
Thanks.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
More information about the linux-arm-kernel
mailing list