net: ethernet: mtk_eth_soc: improve support for named interrupts
authorDaniel Golle <daniel@makrotopia.org>
Wed, 2 Jul 2025 13:14:29 +0000 (14:14 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Jul 2025 01:50:45 +0000 (18:50 -0700)
commite81d36d48880ab3f2b351ce3df799acaa8b11c4f
tree65c1b9cc3edf8ff904c26f760154f1a77d7b9237
parent6058099da5e5eb057751905e587328affb93a81a
net: ethernet: mtk_eth_soc: improve support for named interrupts

Use platform_get_irq_byname_optional() to avoid outputting error
messages when using legacy device trees which rely identifying
interrupts only by index. Instead, output a warning notifying the user
to update their device tree.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/aeccd00eccb7186d39d2c16292019b3b22ec53b8.1751461762.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_eth_soc.c