qlcnic: Use firmware recommended dump capture mask as default
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Fri, 30 Aug 2013 17:51:18 +0000 (13:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2013 02:34:43 +0000 (22:34 -0400)
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c

index 16df5fec0333380783a5513fce5944b23eae96bd..4e74376fdd9b99363f4cc9465be9a92e43f097a5 100644 (file)
@@ -1403,7 +1403,6 @@ struct qlcnic_esw_statistics {
        struct __qlcnic_esw_statistics tx;
 };
 
-#define QLCNIC_DUMP_MASK_DEF           0x1f
 #define QLCNIC_FORCE_FW_DUMP_KEY       0xdeadfeed
 #define QLCNIC_ENABLE_FW_DUMP          0xaddfeed
 #define QLCNIC_DISABLE_FW_DUMP         0xbadfeed
index 79e54efe07b921cc2d7e1986c7d45e16ee9e7ecb..b7871fe9916262a8189aefb4eb68f6b5067e1495 100644 (file)
@@ -1082,7 +1082,10 @@ flash_temp:
        }
 
        tmpl_hdr = ahw->fw_dump.tmpl_hdr;
-       tmpl_hdr->drv_cap_mask = QLCNIC_DUMP_MASK_DEF;
+       tmpl_hdr->drv_cap_mask = tmpl_hdr->cap_mask;
+       dev_info(&adapter->pdev->dev,
+                "Default minidump capture mask 0x%x\n",
+                tmpl_hdr->cap_mask);
 
        if ((tmpl_hdr->version & 0xfffff) >= 0x20001)
                ahw->fw_dump.use_pex_dma = true;