[PATCH net-next v3 04/10] net: freescale: ucc_geth: Fix WOL configuration

Andrew Lunn andrew at lunn.ch
Wed Dec 4 12:58:54 AEDT 2024


On Tue, Dec 03, 2024 at 01:43:15PM +0100, Maxime Chevallier wrote:
> The get/set_wol ethtool ops rely on querying the PHY for its WoL
> capabilities, checking for the presence of a PHY and a PHY interrupts
> isn't enough. Address that by cleaning up the WoL configuration
> sequence.
> 
> Signed-off-by: Maxime Chevallier <maxime.chevallier at bootlin.com>

This at least looks sensible.

Reviewed-by: Andrew Lunn <andrew at lunn.ch>

I don't think we are going to get a perfect implementation until we
move most of the logic into phylink. We need the MAC to declare a
bitmap of what WoL options it supports. And we need the PHY to declare
the same. And the core can then figure out which of the enabled WoL
options the PHY should do, which the MAC should do, if the MAC can be
powered off, etc.

But i doubt that will get implemented any time soon.

	Andrew


More information about the Linuxppc-dev mailing list