aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2012-05-10 05:14:12 -0400
committerLuciano Coelho <coelho@ti.com>2012-06-05 08:58:28 -0400
commit06bba80e711b9b66e9316d4d228b55f768c27749 (patch)
treeae66b68ecd536f24c764e4eaa28d92bd79ba7def /drivers/net/wireless
parent283e8c425f6eab2002457c27a5182869bb414771 (diff)
wlcore: print the interrupt status when recovery is triggered
In some cases it may be useful for debugging to check what is the status of the interrupt register when a hardware recovery happens. Print the contents of REG_INTERRUPT_NO_CLEAR (aka. HINT_STS_RAW) when recovery starts. Signed-off-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ti/wlcore/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c
index 9589aa956bf7..00a482199a32 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -836,9 +836,11 @@ static void wl1271_recovery_work(struct work_struct *work)
836 836
837 /* change partitions momentarily so we can read the FW pc */ 837 /* change partitions momentarily so we can read the FW pc */
838 wlcore_set_partition(wl, &wl->ptable[PART_BOOT]); 838 wlcore_set_partition(wl, &wl->ptable[PART_BOOT]);
839 wl1271_info("Hardware recovery in progress. FW ver: %s pc: 0x%x", 839 wl1271_info("Hardware recovery in progress. FW ver: %s pc: 0x%x "
840 "hint_sts: 0x%08x",
840 wl->chip.fw_ver_str, 841 wl->chip.fw_ver_str,
841 wlcore_read_reg(wl, REG_PC_ON_RECOVERY)); 842 wlcore_read_reg(wl, REG_PC_ON_RECOVERY),
843 wlcore_read_reg(wl, REG_INTERRUPT_NO_CLEAR));
842 wlcore_set_partition(wl, &wl->ptable[PART_WORK]); 844 wlcore_set_partition(wl, &wl->ptable[PART_WORK]);
843 845
844 BUG_ON(bug_on_recovery && 846 BUG_ON(bug_on_recovery &&