aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_main.c
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@intel.com>2014-10-16 23:14:51 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-11-03 07:11:51 -0500
commit5b5faa434a008e41edcba6d00add5fd591287a54 (patch)
tree421a3c17bf20ca817b4a8a8b300cc90202466608 /drivers/net/ethernet/intel/i40e/i40e_main.c
parent049a2be828e5a48a4183aae19e5586fa661439d8 (diff)
i40e: enable debug earlier
Check the debug module parameter earlier to be able to catch the early configuration phase adminq messages. Change-ID: Ic84fabd72393489bbf96042de770790a80fd8468 Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Patrick Lu <patrick.lu@intel.com> Tested-by: Jim Young <jamesx.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_main.c')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 6a481bfeb09d..ea622676ebe7 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -9023,6 +9023,11 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
9023 hw->bus.func = PCI_FUNC(pdev->devfn); 9023 hw->bus.func = PCI_FUNC(pdev->devfn);
9024 pf->instance = pfs_found; 9024 pf->instance = pfs_found;
9025 9025
9026 if (debug != -1) {
9027 pf->msg_enable = pf->hw.debug_mask;
9028 pf->msg_enable = debug;
9029 }
9030
9026 /* do a special CORER for clearing PXE mode once at init */ 9031 /* do a special CORER for clearing PXE mode once at init */
9027 if (hw->revision_id == 0 && 9032 if (hw->revision_id == 0 &&
9028 (rd32(hw, I40E_GLLAN_RCTL_0) & I40E_GLLAN_RCTL_0_PXE_MODE_MASK)) { 9033 (rd32(hw, I40E_GLLAN_RCTL_0) & I40E_GLLAN_RCTL_0_PXE_MODE_MASK)) {