2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00

qlcnic: Use firmware recommended dump capture mask as default

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Shahed Shaikh 2013-08-30 13:51:18 -04:00 committed by David S. Miller
parent 60dcbcb02d
commit 7010bb65ce
2 changed files with 4 additions and 2 deletions

View 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

View 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;