ath6kl: Add debugfs interface to dump diagnostic registers from firmware
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Fri, 2 Sep 2011 07:40:06 +0000 (10:40 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 2 Sep 2011 07:44:21 +0000 (10:44 +0300)
commit91d57de5adfc40184ef7cb8974104459c5211add
treec90db056f20a8475336ac4fcf1c7d1d081f503bc
parentbc07ddb29a7b71ad009bcd84bee4c93908cf22b6
ath6kl: Add debugfs interface to dump diagnostic registers from firmware

To dump a particular register:

    echo <reg_addr> > <debugfs_root>/ieee80211/phyX/ath6kl/reg_addr

To dump the entire register set:

    echo 0 > <debugfs_root>/ieee80211/phyX/ath6kl/reg_addr

Register values will be available at:

    cat <debugfs_root>/ieee80211/phyX/ath6kl/reg_dump

kvalo: commit log cleanup, renamed few functions, removed a warning
message

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/core.h
drivers/net/wireless/ath/ath6kl/debug.c