Re: [PATCH net-next v3 04/10] net: freescale: ucc_geth: Fix WOL configuration
From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-12-04 01:59:02
Also in:
lkml, netdev
From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-12-04 01:59:02
Also in:
lkml, netdev
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@bootlin.com>
This at least looks sensible. Reviewed-by: Andrew Lunn <andrew@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