From: Willie Wiholm via B4 Relay <devnull+willie.wiholm.tritechsolutions.se@kernel.org>
To: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Thomas Haemmerle <thomas.haemmerle@wolfvision.net>
Cc: netdev@vger.kernel.org,
Willie Wiholm <willie.wiholm@tritechsolutions.se>,
stable@vger.kernel.org
Subject: [PATCH RFC net 0/2] net: phy: dp83867: fix Wake-on-LAN without a PHY IRQ
Date: Fri, 27 Nov 2026 19:44:55 +0100 [thread overview]
Message-ID: <20261127-wol-net-v1-0-769a2aff91df@tritechsolutions.se> (raw)
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>
next reply other threads:[~2026-11-27 18:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 18:44 Willie Wiholm via B4 Relay [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127-wol-net-v1-0-769a2aff91df@tritechsolutions.se \
--to=devnull+willie.wiholm.tritechsolutions.se@kernel.org \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stable@vger.kernel.org \
--cc=thomas.haemmerle@wolfvision.net \
--cc=willie.wiholm@tritechsolutions.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox