Re: [PATCH net-next v3] net: stmmac: Use interrupt mode INTM=1 for per channel irq

From: Jakub Raczynski

Date: Tue May 12 2026 - 12:07:05 EST


On Mon, May 11, 2026 at 06:08:42PM -0700, Jakub Kicinski wrote:
> On Thu, 7 May 2026 00:01:25 -0700
> muhammad.nazim.amirul.nazle.asmade@xxxxxxxxxx wrote:
> > - Wire up multi_irq_en via STMMAC_FLAG_MULTI_IRQ_EN in stmmac_main.c
> > so the feature is reachable by platform drivers.
>
> Okay, but where is a platform driver which uses it _today_ ?
> We need an upstream platform that uses this new bit submitted
> as part of the same series.
>
> If I'm completely off, and this new code somehow gets triggered
> with upstream platforms - please improve the commit message.
> --
> pw-bot: cr
>
Please allow me to attach question to this response, but is this patch enough?

In stmmac code there is handler stmmac_request_irq() which deals with
stmmac_request_irq_multi_msi() and single() aka shared IRQ.
If INTM is enabled, does it really do anything if there is no handler within
stmmac_request_irq() that would process all different IRQs, depending how
is it wired on specific hardware? Or rather, shouldn't there be new function
to call request_irq() per DMA channel for that?

There is e9ee910218ffd that reverted basically whole support for above,
so I think this change is not sufficient.

Please correct me if I am wrong. Thank you.

BR
Jakub Raczynski