net: airoha: Enable multiple IRQ lines support in airoha_eth driver.
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 18 Apr 2025 10:40:50 +0000 (12:40 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Apr 2025 00:03:53 +0000 (17:03 -0700)
commitf252493e1835366fc25ce631c3056f900977dd11
tree7199cae5881050fee49e4af91831624c495536bb
parent9439db26d3ee4a897e5cd108864172531f31ce07
net: airoha: Enable multiple IRQ lines support in airoha_eth driver.

EN7581 ethernet SoC supports 4 programmable IRQ lines for Tx and Rx
interrupts. Enable multiple IRQ lines support. Map Rx/Tx queues to the
available IRQ lines using the default scheme used in the vendor SDK:

- IRQ0: rx queues [0-4],[7-9],15
- IRQ1: rx queues [21-30]
- IRQ2: rx queues 5
- IRQ3: rx queues 6

Tx queues interrupts are managed by IRQ0.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250418-airoha-eth-multi-irq-v1-2-1ab0083ca3c1@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c
drivers/net/ethernet/airoha/airoha_eth.h
drivers/net/ethernet/airoha/airoha_regs.h