aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>2011-07-13 23:16:55 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-14 11:49:44 -0400
commit40522998dec20d970fe6f0ea8507004aef18f72d (patch)
tree1d964ab4b68dea07eaee9f84d9a91d00300ed7b1
parentfef0c0600b265ea5d4b1e39574801e6509a1dae6 (diff)
qlcnic: change capture mask for FW dump
o Change FW dump capture mask to a defult value, instead of using the recommended value from the FW. This was done to keep the capture mask consistent with other function drivers. o Update driver version to 5.0.21 Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/qlcnic/qlcnic.h6
-rw-r--r--drivers/net/qlcnic/qlcnic_ctx.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h
index f6e54a8e349..baf646d98fa 100644
--- a/drivers/net/qlcnic/qlcnic.h
+++ b/drivers/net/qlcnic/qlcnic.h
@@ -36,8 +36,8 @@
36 36
37#define _QLCNIC_LINUX_MAJOR 5 37#define _QLCNIC_LINUX_MAJOR 5
38#define _QLCNIC_LINUX_MINOR 0 38#define _QLCNIC_LINUX_MINOR 0
39#define _QLCNIC_LINUX_SUBVERSION 20 39#define _QLCNIC_LINUX_SUBVERSION 21
40#define QLCNIC_LINUX_VERSIONID "5.0.20" 40#define QLCNIC_LINUX_VERSIONID "5.0.21"
41#define QLCNIC_DRV_IDC_VER 0x01 41#define QLCNIC_DRV_IDC_VER 0x01
42#define QLCNIC_DRIVER_VERSION ((_QLCNIC_LINUX_MAJOR << 16) |\ 42#define QLCNIC_DRIVER_VERSION ((_QLCNIC_LINUX_MAJOR << 16) |\
43 (_QLCNIC_LINUX_MINOR << 8) | (_QLCNIC_LINUX_SUBVERSION)) 43 (_QLCNIC_LINUX_MINOR << 8) | (_QLCNIC_LINUX_SUBVERSION))
@@ -1339,7 +1339,7 @@ enum op_codes {
1339#define QLCNIC_DUMP_SKIP BIT_7 1339#define QLCNIC_DUMP_SKIP BIT_7
1340 1340
1341#define QLCNIC_DUMP_MASK_MIN 3 1341#define QLCNIC_DUMP_MASK_MIN 3
1342#define QLCNIC_DUMP_MASK_DEF 0x7f 1342#define QLCNIC_DUMP_MASK_DEF 0x1f
1343#define QLCNIC_DUMP_MASK_MAX 0xff 1343#define QLCNIC_DUMP_MASK_MAX 0xff
1344#define QLCNIC_FORCE_FW_DUMP_KEY 0xdeadfeed 1344#define QLCNIC_FORCE_FW_DUMP_KEY 0xdeadfeed
1345#define QLCNIC_ENABLE_FW_DUMP 0xaddfeed 1345#define QLCNIC_ENABLE_FW_DUMP 0xaddfeed
diff --git a/drivers/net/qlcnic/qlcnic_ctx.c b/drivers/net/qlcnic/qlcnic_ctx.c
index 33f5c8a8b55..b0d32ddd2cc 100644
--- a/drivers/net/qlcnic/qlcnic_ctx.c
+++ b/drivers/net/qlcnic/qlcnic_ctx.c
@@ -145,11 +145,7 @@ int qlcnic_fw_cmd_get_minidump_temp(struct qlcnic_adapter *adapter)
145 *template++ = __le32_to_cpu(*tmp_buf++); 145 *template++ = __le32_to_cpu(*tmp_buf++);
146 146
147 tmpl_hdr = ahw->fw_dump.tmpl_hdr; 147 tmpl_hdr = ahw->fw_dump.tmpl_hdr;
148 if (tmpl_hdr->cap_mask > QLCNIC_DUMP_MASK_DEF && 148 tmpl_hdr->drv_cap_mask = QLCNIC_DUMP_MASK_DEF;
149 tmpl_hdr->cap_mask <= QLCNIC_DUMP_MASK_MAX)
150 tmpl_hdr->drv_cap_mask = tmpl_hdr->cap_mask;
151 else
152 tmpl_hdr->drv_cap_mask = QLCNIC_DUMP_MASK_DEF;
153 ahw->fw_dump.enable = 1; 149 ahw->fw_dump.enable = 1;
154error: 150error:
155 dma_free_coherent(&adapter->pdev->dev, temp_size, tmp_addr, tmp_addr_t); 151 dma_free_coherent(&adapter->pdev->dev, temp_size, tmp_addr, tmp_addr_t);