net: ethernet: mtk_eth_soc: skip first IRQ if not used
authorFrank Wunderlich <frank-w@public-files.de>
Thu, 19 Jun 2025 13:21:23 +0000 (15:21 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Jun 2025 01:14:00 +0000 (18:14 -0700)
commit9c0feca0a68b33cf012dd835edc6067407597a59
tree972e38817588d160f17ac769f29a367b6a5cc368
parent4981901009923c8889a635a928d55b8f7f8b31ec
net: ethernet: mtk_eth_soc: skip first IRQ if not used

On SoCs with dedicated RX and TX interrupts (all except MT7621 and
MT7628) platform_get_irq() is called for the first IRQ (eth->irq[0])
but it is never used.
Skip the first IRQ and reduce the IRQ-count to 2.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250619132125.78368-4-linux@fw-web.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h