aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2011-04-18 07:15:24 -0400
committerLuciano Coelho <coelho@ti.com>2011-05-02 03:31:09 -0400
commit52dcaf577f3b6d878a337a44a99a122017c85ff6 (patch)
treeba27a907ddd4c890b3a4ecd61cf9a384bf44213f
parentf482b76202f4ac0f62a77b0e55ac1a1cfe480e2b (diff)
wl12xx: print firmware program counter during recovery
When performing recovery, print the firmware version and program counter (by reading the SCR_PAD4 register). The value of the firmware program counter during assert can be useful for debugging. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
-rw-r--r--drivers/net/wireless/wl12xx/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index 81a0c8ed5a4a..7b88dd2e85ee 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -1004,7 +1004,8 @@ static void wl1271_recovery_work(struct work_struct *work)
1004 if (wl->state != WL1271_STATE_ON) 1004 if (wl->state != WL1271_STATE_ON)
1005 goto out; 1005 goto out;
1006 1006
1007 wl1271_info("Hardware recovery in progress."); 1007 wl1271_info("Hardware recovery in progress. FW ver: %s pc: 0x%x",
1008 wl->chip.fw_ver_str, wl1271_read32(wl, SCR_PAD4));
1008 1009
1009 if (test_bit(WL1271_FLAG_STA_ASSOCIATED, &wl->flags)) 1010 if (test_bit(WL1271_FLAG_STA_ASSOCIATED, &wl->flags))
1010 ieee80211_connection_loss(wl->vif); 1011 ieee80211_connection_loss(wl->vif);