]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: freescale: ucc_geth: Fix WOL configuration
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 3 Dec 2024 12:43:15 +0000 (13:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2024 13:41:52 +0000 (13:41 +0000)
commitd2adc441a19a592ce104e2b257ad9d002eaec53f
treebea94641117c64a394f205939fcc8192f861e6aa
parent43068024cc2a2abdf39c73d3c1ed63a77207ae31
net: freescale: ucc_geth: Fix WOL configuration

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>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/ucc_geth.c
drivers/net/ethernet/freescale/ucc_geth.h
drivers/net/ethernet/freescale/ucc_geth_ethtool.c