Re: [PATCH net-next v3 4/7] net: dsa: microchip: ksz9477: add Wake on PHY event support

From: Andrew Lunn
Date: Sat Oct 14 2023 - 13:32:07 EST


On Fri, Oct 13, 2023 at 02:24:02PM +0200, Oleksij Rempel wrote:
> KSZ9477 family of switches supports multiple PHY events:
> - wake on Link Up
> - wake on Energy Detect.
> Since current UAPI can't differentiate between this PHY events, map all of them
> to WAKE_PHY.

I assume link up and energy detect work without doing a MAC address
comparison? So maybe these should be added first, and then handle
WAKE_MAGIC and setting the global MAC address, and verifying it
matches the user interface MAC address?

Andrew