wifi: ath10k: Store WLAN firmware version in SMEM image table
authorYoughandhar Chintala <quic_youghand@quicinc.com>
Thu, 17 Nov 2022 18:05:34 +0000 (23:35 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 25 Nov 2022 11:12:06 +0000 (13:12 +0200)
commit4d79f6f34bbb01c6715b31ef457d5ab0390501a1
treecf338a9d7c934cde1afe41dcb0f9418f2ee14c70
parentd9e38350a7b10f2e1006cd85a664b8698d027e7c
wifi: ath10k: Store WLAN firmware version in SMEM image table

In a SoC based solution, it would be useful to know the versions of the
various binary firmware blobs the system is running on. On a QCOM based
SoC, this info can be obtained from socinfo debugfs infrastructure. For
this to work, respective subsystem drivers have to export the firmware
version information to an SMEM based version information table.

Having firmware version information at one place will help quickly
figure out the firmware versions of various subsystems on the device
instead of going through builds/logs in an event of a system crash.

Fill WLAN firmware version information in SMEM version table to be
printed as part of socinfo debugfs infrastructure on a Qualcomm based
SoC.

This change is applicable only for SNOC/QMI based targets.

Example:
cat /sys/kernel/debug/qcom_socinfo/cnss/name
QC_IMAGE_VERSION_STRING=WLAN.HL.3.2.2.c10-00754-QCAHLSWMTPL-1

Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.2.2.c10-00754-QCAHLSWMTPL-1

Signed-off-by: Youghandhar Chintala <quic_youghand@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221117180534.2267-1-quic_youghand@quicinc.com
drivers/net/wireless/ath/ath10k/Kconfig
drivers/net/wireless/ath/ath10k/qmi.c