]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: airoha: Fix error path in airoha_probe()
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 16 Dec 2024 17:47:33 +0000 (18:47 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Dec 2024 03:08:28 +0000 (19:08 -0800)
commit0c7469ee718e1dd929f52bfb142a7f6fb68f0765
tree8250bc3138a8cb12cea2e501ea7d5a2e72b9ffae
parent5fde7edadea66eb2a71ab4ceef2cd8e5a0273da9
net: airoha: Fix error path in airoha_probe()

Do not run napi_disable() if airoha_hw_init() fails since Tx/Rx napi
has not been started yet. In order to fix the issue, introduce
airoha_qdma_stop_napi routine and remove napi_disable in
airoha_hw_cleanup().

Fixes: 23020f049327 ("net: airoha: Introduce ethernet support for EN7581 SoC")
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20241216-airoha_probe-error-path-fix-v2-1-6b10e04e9a5c@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/airoha_eth.c