[PATCH v2 1/2] ath10k: add firmware crash counters

Kalle Valo kvalo at qca.qualcomm.com
Mon Sep 29 02:47:01 PDT 2014


Kalle Valo <kvalo at qca.qualcomm.com> writes:

> From: Ben Greear <greearb at candelatech.com>
>
> kvalo: split into it's own patch, add debugfs file and add locking
>
> Signed-off-by: Ben Greear <greearb at candelatech.com>
> Signed-off-by: Kalle Valo <kvalo at qca.qualcomm.com>

Oh, I forgot to add a commit log. I'm planning to add something like
this:

----------------------------------------------------------------------
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
#

----------------------------------------------------------------------

Also I forgot to add the cover letter, here's the changelog for both
patches:

v2:

* remove unneeded ifdef from debug.c

* rebase on top of Michal's "ath10k: fix fw stats processing",
  dropping patch "ath10k: add helper method to grab debug stats"
  because it was not needed anymore

* remove ifdef from ath10k_ops with "#define foo NULL" hack

* hold mutex when reading pdev_stats in ath10k_debug_get_et_stats()

* move fw reset stats to struct ath10k::stats and add locking

* add fw_reset_stats debugfs file


-- 
Kalle Valo



More information about the ath10k mailing list