wifi: ath12k: Add support to read EEPROM caldata
authorDinesh Karthikeyan <quic_dinek@quicinc.com>
Fri, 23 Dec 2022 05:06:46 +0000 (10:36 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 18 Jan 2023 06:38:51 +0000 (08:38 +0200)
commit801fc159e30d3588b0fece351e1e8bdf375590d6
treeacc60cb94b92125c881e51535ed912240849fb1e
parent42982259e9b7f090cefee28393989fa76a9aa57d
wifi: ath12k: Add support to read EEPROM caldata

In current implementation, there is a overhead of maintaining caldata
in the filesystem manually. To eliminate this overhead, for pci based
chipsets, if calibration data is present in EEPROM, indicate firmware
to download and read caldata from EEPROM. If the caldata is present in
EEPROM, host is notified in the target capability.
Upon this, the download request for the type ATH12K_QMI_FILE_TYPE_EEPROM
is sent to firmware.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Dinesh Karthikeyan <quic_dinek@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221223050646.27785-4-quic_dinek@quicinc.com
drivers/net/wireless/ath/ath12k/qmi.c