Re: [PATCH net-next 1/2] net: renesas: rswitch: use per-port irq handlers
From: Andrew Lunn
Date: Fri Dec 20 2024 - 04:19:31 EST
On Fri, Dec 20, 2024 at 09:16:58AM +0500, Nikita Yushchenko wrote:
> Instead of handling all possible data interrupts in the same handler,
> switch to per-port handlers.
>
> This significantly simplifies handling: when the same interrupt is used
> for several ports, system calls all handlers, and each handler only has
> to check interrupts for one port's tx and rx queues.
>
> But it is not required to use the same interrupt for all ports - GWCA
> provides 8 data interrupts and allows arbitrary per-queue assignment
> of those. Support that by reading interrupt index for each port from
> optional 'irq-index' device tree property.
It has been pointed out that adding this property breaks backwards
compatibility with older DT blobs.
I don't know this hardware...
How many ports are there? Less than 9? Can you just do a static
allocation, port 0 gets interrupt 0, port 1 interrupt 1...
Andrew