ath10k: provide firmware crash info via debugfs
authorBen Greear <greearb@candelatech.com>
Mon, 25 Aug 2014 05:37:32 +0000 (08:37 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 25 Aug 2014 08:23:24 +0000 (11:23 +0300)
commit384914b2e5566dfce25f3f38d992708a9ef6f51b
treeea8a24b4201fb97cf562fd2c6f9e8e87d5ab9ba0
parent3d29a3e04298e3883625c677f62f7f1e634eec10
ath10k: provide firmware crash info via debugfs

Store the firmware registers and other relevant data to a firmware crash dump
file and provide it to user-space via debugfs. Should help with figuring out
why the firmware crashed.

kvalo: remove dbglog support, rework and refactor the code to avoid ifdefs and
otherwise simplify it as well

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/debug.h
drivers/net/wireless/ath/ath10k/hw.h
drivers/net/wireless/ath/ath10k/pci.c
drivers/net/wireless/ath/ath10k/pci.h