]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath11k: fix wrong definition of CE ring's base address
authorBaochen Qiang <quic_bqiang@quicinc.com>
Fri, 24 May 2024 02:15:58 +0000 (10:15 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 28 May 2024 17:43:17 +0000 (20:43 +0300)
commit5714e25f1d1875b300fb337dadfaa75324c1161a
tree021a7b04f6a364f5b2aa71b2e2a7fcff1a82c34a
parentaf69d862a8baa600b018f66aca8174b23c166a5f
wifi: ath11k: fix wrong definition of CE ring's base address

Base address of CE ring is defined as u32, currently this works
because coherent DMA mask configured as 32 bit:

#define ATH11K_PCI_COHERENT_DMA_MASK 32

However this mask could be changed once firmware bugs are fixed
to fully support 36 bit DMA addressing. So to protect against any
future changes to the DMA mask, change the type of the fields that
are dependent upon it.

This is found during code review. Compile tested only.

Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240524021558.34452-1-quic_bqiang@quicinc.com
drivers/net/wireless/ath/ath11k/ce.h