aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTayar, Tomer <Tomer.Tayar@cavium.com>2017-06-13 12:15:59 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-13 13:32:58 -0400
commitace17c369295f088dc8ac8ff468602646fa5cced (patch)
tree47f80451036b6efb752983ff5e379f1f95eb664f /drivers
parentqmi_wwan: new Telewell and Sierra device IDs (diff)
downloadlinux-dev-ace17c369295f088dc8ac8ff468602646fa5cced.tar.xz
linux-dev-ace17c369295f088dc8ac8ff468602646fa5cced.zip
qed: fix dump of context data
Currently when dumping a context data only word number '1' is read for the entire context. Fixes: c965db444629 ("qed: Add support for debug data collection") Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_debug.c b/drivers/net/ethernet/qlogic/qed/qed_debug.c
index 483241b4b05d..a672f6a860dc 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_debug.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_debug.c
@@ -2956,7 +2956,7 @@ static u32 qed_grc_dump_ctx_data(struct qed_hwfn *p_hwfn,
qed_wr(p_hwfn,
p_ptt,
s_storm_defs[storm_id].cm_ctx_wr_addr,
- BIT(9) | lid);
+ (i << 9) | lid);
*(dump_buf + offset) = qed_rd(p_hwfn,
p_ptt,
rd_reg_addr);