summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2011-09-06 16:31:22 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2011-09-14 17:56:40 (GMT)
commit05f8a09faeb4e3a9dd5a877eff747bb898048b5d (patch)
tree8d38eb7fb7f775c2dfbdfe4d4d95d54319664543 /drivers/net
parent7a10e3e4076d09779da5a02b0ab6ce551d964d48 (diff)
downloadlinux-05f8a09faeb4e3a9dd5a877eff747bb898048b5d.tar.xz
iwlagn: disply queue read/write pointer when stuck
When driver detect queue stuck, display current read/write pointer before perform frimware reload. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-trans.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.c b/drivers/net/wireless/iwlwifi/iwl-trans.c
index 5bf6250..c495fc3 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans.c
+++ b/drivers/net/wireless/iwlwifi/iwl-trans.c
@@ -1497,6 +1497,8 @@ static int iwl_trans_pcie_check_stuck_queue(struct iwl_trans *trans, int cnt)
if (time_after(jiffies, timeout)) {
IWL_ERR(trans, "Queue %d stuck for %u ms.\n", q->id,
hw_params(trans).wd_timeout);
+ IWL_ERR(trans, "Current read_ptr %d write_ptr %d\n",
+ q->read_ptr, q->write_ptr);
return 1;
}