]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: ath9k: Clear DMA descriptors without memset
authorRosen Penev <rosenp@gmail.com>
Sun, 17 May 2026 04:27:16 +0000 (21:27 -0700)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Sat, 6 Jun 2026 15:46:29 +0000 (08:46 -0700)
commit44589c155e6f4531100ddd3b6478190edd075035
treeb55e3d405b3c8b1f3d9379baab1ef6c92166a963
parent6a03ff9d5765ab701c12c9fc781fa6de171e1a2e
wifi: ath9k: Clear DMA descriptors without memset

Clear ath9k DMA descriptors with explicit status word stores instead of
memset(). The descriptor rings are coherent DMA memory, which may be
mapped uncached on 32-bit powerpc. The optimized memset() path can use
dcbz there and trigger an alignment warning.

Use WRITE_ONCE() for the descriptor status words so the compiler keeps
the clears as ordinary stores instead of folding them back into bulk
memset(). This covers AR9003 TX status descriptors as well as the RX
status area cleared when setting up RX descriptors.

Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://patch.msgid.link/20260517042716.2218386-1-rosenp@gmail.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath9k/ar9002_mac.c
drivers/net/wireless/ath/ath9k/ar9003_mac.c