From: Andrew Lunn <andrew@lunn.ch>
To: "Wiholm Willie,
Tritech Solutions AB" <willie.wiholm@tritechsolutions.se>
Cc: 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>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH RFC net 1/2] net: phy: dp83867: set INT_OE when enabling Wake-on-LAN
Date: Sun, 29 Nov 2026 23:19:41 +0100 [thread overview]
Message-ID: <fc0234cd-f01b-4e9d-b25e-e496b95ced55@lunn.ch> (raw)
In-Reply-To: <MM0SPR01MB62788E40E924E4B7BF92EFF76F94F2@MM0SPR01MB62788.SWEP280.PROD.OUTLOOK.COM>
On Sun, Nov 29, 2026 at 10:03:37PM +0000, Wiholm Willie, Tritech Solutions AB wrote:
> On Fri, Nov 27, 2026 at 07:56:51PM +0100, Andrew Lunn wrote:
> > Can this pin on the MAC actually generate interrupts? It would be
> > better to turn it into an interrupt controller, so all the usual
> > mechanisms just work, like PHY interrupts, not just WoL wake up.
>
> Yes, by setting the PHYIE bit in the MAC_INTERRUPT_ENABLE
> register I can generate interrupts. It also requires
> PHY2MAC_INTR_POL in the GCR register which was not set
> by the firmware on my board.
>
> I tested it by manually setting PHY2MAC_INTR_POL, PHYIE
> and INT_OE (DP83867 CFG3). Magic packet then triggers
> an interrupt in eno1:mac.
Great. So you need a Linux interrupt controller, so you can then
ideally reference it in DT, in the PHY node, in the normal way.
There are a couple of DSA drivers which embed an interrupt controller
in them, which you can use as an example. They support more than one
interrupt, so are a bit more complex than what you need.
Andrew
next prev parent reply other threads:[~2026-11-29 22:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=fc0234cd-f01b-4e9d-b25e-e496b95ced55@lunn.ch \
--to=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