]> www.infradead.org Git - users/willy/pagecache.git/commit
net: lan743x: Support WOL at both the PHY and MAC appropriately
authorRaju Lakkaraju <Raju.Lakkaraju@microchip.com>
Fri, 14 Jun 2024 17:11:56 +0000 (22:41 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Jun 2024 10:04:23 +0000 (12:04 +0200)
commit8c248cd836014339498486f14f435c0e344183a7
treeabeade3580fc48718006a3f56484608c4880391c
parent7725363936a88351b71495774c1e0e852ae4cdca
net: lan743x: Support WOL at both the PHY and MAC appropriately

Prevent options not supported by the PHY from being requested to it by the MAC
Whenever a WOL option is supported by both, the PHY is given priority
since that usually leads to better power savings.

Fixes: e9e13b6adc33 ("lan743x: fix for potential NULL pointer dereference with bare card")
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microchip/lan743x_ethtool.c
drivers/net/ethernet/microchip/lan743x_main.c
drivers/net/ethernet/microchip/lan743x_main.h