mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
049a2be828
commit
5b5faa434a
@ -9023,6 +9023,11 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
hw->bus.func = PCI_FUNC(pdev->devfn);
|
||||
pf->instance = pfs_found;
|
||||
|
||||
if (debug != -1) {
|
||||
pf->msg_enable = pf->hw.debug_mask;
|
||||
pf->msg_enable = debug;
|
||||
}
|
||||
|
||||
/* do a special CORER for clearing PXE mode once at init */
|
||||
if (hw->revision_id == 0 &&
|
||||
(rd32(hw, I40E_GLLAN_RCTL_0) & I40E_GLLAN_RCTL_0_PXE_MODE_MASK)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user