Netdev List
 help / color / mirror / Atom feed
* [PATCH RFC net 0/2] net: phy: dp83867: fix Wake-on-LAN without a PHY IRQ
@ 2026-11-27 18:44 Willie Wiholm via B4 Relay
  2026-11-27 18:44 ` [PATCH RFC net 1/2] net: phy: dp83867: set INT_OE when enabling Wake-on-LAN Willie Wiholm via B4 Relay
  2026-11-27 18:44 ` [PATCH RFC net 2/2] net: phy: dp83867: clear latched WoL interrupt before suspend Willie Wiholm via B4 Relay
  0 siblings, 2 replies; 6+ messages in thread
From: Willie Wiholm via B4 Relay @ 2026-11-27 18:44 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Russell King, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Thomas Haemmerle
  Cc: netdev, Willie Wiholm, stable

On an Intel Elkhart Lake board (congatec conga-SA7, dwmac-intel with a
DP83867 over RGMII) Wake-on-LAN from S3 does not work on the first
suspend after boot or after a link down/up.

Patch 1 sets CFG3.INT_OE when WoL is enabled. Without a PHY IRQ the
driver never sets it, so the pin stays a power-down input. The firmware
sets it, but the soft reset on attach clears it, so the first suspend
after boot does not wake up.

Patch 2 reads ISR before suspend. Nothing reads it when the PHY is
polled, so a magic packet received while the system is running leaves
the WoL interrupt latched, and the next suspend does not wake up.

Tested on the board with net (28a371228d4e): the first suspend after
boot, after link down/up and after a magic packet received while
running all wake up on a unicast magic packet.

Questions:
1. Patch 1 makes the pin an output when WoL is enabled. Would you
   rather preserve the firmware setting across the soft reset, as
   043777e94880 does for the LED registers?
2. Patch 2 uses PHY_ALWAYS_CALL_SUSPEND to get a hook before suspend,
   like bcm54xx. Is that acceptable?

I used an AI coding assistant (Claude) for parts of the analysis, the
test automation and for drafting the cover letter. I have
reviewed the changes and tested them on the hardware.

Signed-off-by: Willie Wiholm <willie.wiholm@tritechsolutions.se>
---
Willie Wiholm (2):
      net: phy: dp83867: set INT_OE when enabling Wake-on-LAN
      net: phy: dp83867: clear latched WoL interrupt before suspend

 drivers/net/phy/dp83867.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
---
base-commit: 28a371228d4eb4857cc31eeb1a0d7d01e9c3ea2f
change-id: 20261127-wol-net-10fed393954a

Best regards,
-- 
Willie Wiholm <willie.wiholm@tritechsolutions.se>



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-29 22:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 18:44 [PATCH RFC net 0/2] net: phy: dp83867: fix Wake-on-LAN without a PHY IRQ Willie Wiholm via B4 Relay
2026-11-27 18:44 ` [PATCH RFC net 1/2] net: phy: dp83867: set INT_OE when enabling Wake-on-LAN Willie Wiholm via B4 Relay
2026-11-27 18:56   ` Andrew Lunn
2026-11-29 22:03     ` Wiholm Willie, Tritech Solutions AB
2026-11-29 22:19       ` Andrew Lunn
2026-11-27 18:44 ` [PATCH RFC net 2/2] net: phy: dp83867: clear latched WoL interrupt before suspend Willie Wiholm via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox