net: phy: dp8382x: keep WOL settings across suspends
authorCatalin Popescu <catalin.popescu@leica-geosystems.com>
Mon, 8 Apr 2024 08:26:02 +0000 (10:26 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 9 Apr 2024 23:57:55 +0000 (16:57 -0700)
commit9ef9ecfa9e9f0472adf5b254bda1e0788bc8eaad
tree0fd2df88a8f0d25f66ff666a4b9d725dd01e2d28
parent6a053f07d5a5839eb5e62e29af3f49f0c964bad4
net: phy: dp8382x: keep WOL settings across suspends

Unlike other ethernet PHYs from TI, PHY dp8382x has WOL enabled
at reset. The driver explicitly disables WOL in config_init callback
which is called during init and during resume from suspend. Hence,
WOL is unconditionally disabled during resume, even if it was enabled
before the suspend. We make sure that WOL configuration is persistent
across suspends.

Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240408082602.3654090-1-catalin.popescu@leica-geosystems.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/dp83822.c