]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: Refactor the hardware cookie conversion init
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Thu, 18 Apr 2024 15:30:24 +0000 (18:30 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 22 Apr 2024 12:06:31 +0000 (15:06 +0300)
commitb3e9e82b31c07f88a62f79037172218afb64f2e1
tree7dad4a5035c50220b05a5758215507738f363c19
parent3ea19127d154ea4dd486b8111cdce33f0a1809bf
wifi: ath12k: Refactor the hardware cookie conversion init

Currently, the Rx descriptor is placed before the Tx descriptor in the
primary page table of the hardware cookie conversion configuration. The
Tx and Rx descriptor offsets are implicitly hardcoded. To allow for easy
displacement of Tx and Rx descriptors, introduce Tx and Rx offset based
cookie conversion initializationi. Additionally, should consider
validating the respective offset ranges while retrieving the Tx and Rx
descriptors. This change will be utilize by the next patch in the series.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00188-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240411102226.4045323-3-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/dp.c
drivers/net/wireless/ath/ath12k/dp.h