]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: airoha: Add missing bits in airoha_qdma_cleanup_tx_queue()
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 17 Apr 2026 06:36:32 +0000 (08:36 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 23 Apr 2026 07:07:57 +0000 (09:07 +0200)
commit3309965fe44c00fd65af7cef5016e9e782c021a7
treede8ffd8c005f498698bfbc21f36a20361ec0c4cc
parentf329924bb49458c65297f1361f545816a5b90998
net: airoha: Add missing bits in airoha_qdma_cleanup_tx_queue()

Similar to airoha_qdma_cleanup_rx_queue(), reset DMA TX descriptors in
airoha_qdma_cleanup_tx_queue routine. Moreover, reset TX_DMA_IDX to
TX_CPU_IDX to notify the NIC the QDMA TX ring is empty.

Fixes: 23020f0493270 ("net: airoha: Introduce ethernet support for EN7581 SoC")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260417-airoha_qdma_cleanup_tx_queue-fix-net-v4-2-e04bcc2c9642@kernel.org
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/airoha/airoha_eth.c