]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ethernet: mtk-star-emac: rearm interrupts in rx_poll only when advised
authorLouis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Thu, 24 Apr 2025 08:38:49 +0000 (10:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 May 2025 07:43:58 +0000 (09:43 +0200)
commit5ba9380f79f288c490e655ddaa3fddffa4072463
treeccb533692f51511884b2bc6bb200afd7f5bd4916
parent7cb10f17bddc415f30fbc00a4e2b490e0d94c462
net: ethernet: mtk-star-emac: rearm interrupts in rx_poll only when advised

[ Upstream commit e54b4db35e201a9173da9cb7abc8377e12abaf87 ]

In mtk_star_rx_poll function, on event processing completion, the
mtk_star_emac driver calls napi_complete_done but ignores its return
code and enable RX DMA interrupts inconditionally. This return code
gives the info if a device should avoid rearming its interrupts or not,
so fix this behaviour by taking it into account.

Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver")
Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://patch.msgid.link/20250424-mtk_star_emac-fix-spinlock-recursion-issue-v2-2-f3fde2e529d8@collabora.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mediatek/mtk_star_emac.c