summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>2011-06-02 12:42:21 +0000
committerDavid S. Miller <davem@davemloft.net>2011-06-05 14:18:19 -0700
commit54ff502c283b6cf77c95c05c99dbca40d910b17d (patch)
tree9eba488bfe89885bcc0c40d769edc5c987831901
parentb8f07a063163f8216cd891c5b007e839a56b6d93 (diff)
downloadlinux-3.10-54ff502c283b6cf77c95c05c99dbca40d910b17d.tar.gz
linux-3.10-54ff502c283b6cf77c95c05c99dbca40d910b17d.tar.bz2
linux-3.10-54ff502c283b6cf77c95c05c99dbca40d910b17d.zip
qlcnic: Fix bug in FW queue dump
Due to a change in FW template, a bug was introduced in dump queue entries. This is fixed by reinitializing queue address before looping for each que dump operation. Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/qlcnic/qlcnic_hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hw.c b/drivers/net/qlcnic/qlcnic_hw.c
index e9656616f2a..a5d9fbf9d81 100644
--- a/drivers/net/qlcnic/qlcnic_hw.c
+++ b/drivers/net/qlcnic/qlcnic_hw.c
@@ -1406,6 +1406,7 @@ qlcnic_dump_que(struct qlcnic_adapter *adapter, struct qlcnic_dump_entry *entry,
for (loop = 0; loop < que->no_ops; loop++) {
QLCNIC_WR_DUMP_REG(que->sel_addr, base, que_id);
+ addr = que->read_addr;
for (i = 0; i < cnt; i++) {
QLCNIC_RD_DUMP_REG(addr, base, &data);
*buffer++ = cpu_to_le32(data);