[PATCH net-next 0/4] net: add WoL from PHY support for stm32mp135f-dk

Gatien Chevallier gatien.chevallier at foss.st.com
Mon Jul 21 04:14:42 PDT 2025


A previous patchset in drivers/net/phy/smsc.c introduced the WoL
from PHY capability of some PHYs. The Microchip LAN8742 PHY is
present on the stm32mp135f-dk board and posesses this capability.

Therefore, add the possibility to specify in the device tree that,
for a MAC instance, we want to use the WoL from PHY capability
instead of the MAC one.

However, when testing multiple power sequences with magic packets,
the first one succeeded but the following ones failed. This was
caused by uncleared flags in a PHY register. Therefore, I added
a patch to add suspend()/resume() callbacks that handle these.
These callbacks are only implemented for the Microchip LAN8742 as I
have no way of testing it for other WoL capable PHYs.

Signed-off-by: Gatien Chevallier <gatien.chevallier at foss.st.com>
---
Gatien Chevallier (4):
      dt-bindings: net: document st,phy-wol property
      net: stmmac: stm32: add WoL from PHY support
      net: phy: smsc: fix and improve WoL support
      arm: dts: st: activate ETH1 WoL from PHY on stm32mp135f-dk

 .../devicetree/bindings/net/stm32-dwmac.yaml       |  6 ++++
 arch/arm/boot/dts/st/stm32mp135f-dk.dts            |  1 +
 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c  |  5 +++
 drivers/net/phy/smsc.c                             | 42 +++++++++++++++++++---
 include/linux/smscphy.h                            |  2 ++
 5 files changed, 52 insertions(+), 4 deletions(-)
---
base-commit: 4701ee5044fb3992f1c910630a9673c2dc600ce5
change-id: 20250721-wol-smsc-phy-ff3b40848852

Best regards,
-- 
Gatien Chevallier <gatien.chevallier at foss.st.com>




More information about the linux-arm-kernel mailing list