ath10k: enable QCA6174/QCA9377 to read the chip temperature
authorRyan Hsu <ryanhsu@codeaurora.org>
Tue, 27 Mar 2018 08:25:36 +0000 (11:25 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 29 Mar 2018 08:51:14 +0000 (11:51 +0300)
commite98199a8c27f6ac8900307bc611ca4b15467f324
tree95b531b4046eca97ca4260c7afdf01bfd666c594
parent55cc11da69895a680940c1733caabc37be685f5e
ath10k: enable QCA6174/QCA9377 to read the chip temperature

The firmware of QCA6174/QCA9377 already support the feature, just enable
it to be able to handle the get_temperature command and process the event.

You can read the temperature by using the hwmon interface,

cat /sys/class/ieee80211/phy*/device/hwmon/hwmon2/temp1_input

Verified with the following hardware and software combination,
QCA6174, only firmware-4.bin doesn't support this, otherwise all support.
QCA9377, all the firmwares upstreamed support this command

Signed-off-by: Ryan Hsu <ryanhsu@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/wmi-tlv.c
drivers/net/wireless/ath/ath10k/wmi-tlv.h