]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: airoha: Add dma_rmb() and READ_ONCE() in airoha_qdma_rx_process()
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 7 Apr 2026 06:48:04 +0000 (08:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Apr 2026 03:35:15 +0000 (20:35 -0700)
commit4ae0604a0673e11e2075b178387151fcad5111b5
tree97bf83ac82332dfab344bbff8295a66ddbb3d33c
parente159f05e12cc1111a3103b99375ddf0dfd0e7d63
net: airoha: Add dma_rmb() and READ_ONCE() in airoha_qdma_rx_process()

Add missing dma_rmb() in airoha_qdma_rx_process routine to make sure the
DMA read operations are completed when the NIC reports the processing on
the current descriptor is done. Moreover, add missing READ_ONCE() in
airoha_qdma_rx_process() for DMA descriptor control fields in order to
avoid any compiler reordering.

Fixes: 23020f0493270 ("net: airoha: Introduce ethernet support for EN7581 SoC")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260407-airoha_qdma_rx_process-fix-reordering-v3-1-91c36e9da31f@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c