ath10k: add firmware crash counters
authorBen Greear <greearb@candelatech.com>
Mon, 29 Sep 2014 11:41:46 +0000 (14:41 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 1 Oct 2014 08:16:27 +0000 (11:16 +0300)
commitf51dbe737441b758628be4763d0c3bcad4fe000f
tree3248b18fc4fb62a633381f371215bf27a6929377
parent5326849a866991eef86452fb6a108dd320b92173
ath10k: add firmware crash counters

Add three counters related to firmware crashes or resets.

Usage:

# cat /sys/kernel/debug/ieee80211/phy0/ath10k/fw_reset_stats
fw_crash_counter                2
fw_warm_reset_counter           43
fw_cold_reset_counter           0
#

kvalo: split into it's own patch, add debugfs file and add locking

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/pci.c