]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: airoha: Rework the code flow in airoha_remove() and in airoha_probe() error...
authorLorenzo Bianconi <lorenzo@kernel.org>
Sat, 21 Mar 2026 14:41:44 +0000 (15:41 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Mar 2026 12:40:05 +0000 (13:40 +0100)
commitb1c803d5c8167026791abfaed96fd3e6a1fcd750
treed70ff5e0d9ad18fa0058e65fb407e352b2af3fa8
parenta4b908c89d88d4b7251c566457979c4167b9664c
net: airoha: Rework the code flow in airoha_remove() and in airoha_probe() error path

As suggested by Simon in [0], rework the code flow in airoha_remove()
and in the airoha_probe() error path in order to rely on a more common
approach un-registering configured net-devices first and destroying the
hw resources at the end of the code.
Introduce airoha_qdma_cleanup routine to release QDMA resources.

[0] https://lore.kernel.org/netdev/20251214-airoha-fix-dev-registration-v1-1-860e027ad4c6@kernel.org/

Suggested-by: Simon Horman <horms@kernel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260321-airoha-remove-rework-v2-1-16c7bade5fe5@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/airoha/airoha_eth.c