]> www.infradead.org Git - users/willy/pagecache.git/commit
net: lan743x: disable WOL upon resume to restore full data path operation
authorRaju Lakkaraju <Raju.Lakkaraju@microchip.com>
Fri, 14 Jun 2024 17:11:55 +0000 (22:41 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 18 Jun 2024 10:04:23 +0000 (12:04 +0200)
commit7725363936a88351b71495774c1e0e852ae4cdca
tree1696994c08b7c76997e2e7ed0cd8e221814fda2e
parent2d7198278ece01818cd95a3beffbdf8b2a353fa0
net: lan743x: disable WOL upon resume to restore full data path operation

When Wake-on-LAN (WoL) is active and the system is in suspend mode, triggering
a system event can wake the system from sleep, which may block the data path.
To restore normal data path functionality after waking, disable all wake-up
events. Furthermore, clear all Write 1 to Clear (W1C) status bits by writing
1's to them.

Fixes: 4d94282afd95 ("lan743x: Add power management support")
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_main.c
drivers/net/ethernet/microchip/lan743x_main.h