Commit 416cdf06 authored by Yuval Mintz's avatar Yuval Mintz Committed by David S. Miller

qed: VFs gracefully accept lack of PM

VF's probe might log that it has no PM capability in its PCI configuration
space. As this is a valid configuration, silence such prints.
Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 83f34bd4
...@@ -158,7 +158,7 @@ static int qed_init_pci(struct qed_dev *cdev, ...@@ -158,7 +158,7 @@ static int qed_init_pci(struct qed_dev *cdev,
} }
cdev->pci_params.pm_cap = pci_find_capability(pdev, PCI_CAP_ID_PM); cdev->pci_params.pm_cap = pci_find_capability(pdev, PCI_CAP_ID_PM);
if (cdev->pci_params.pm_cap == 0) if (IS_PF(cdev) && !cdev->pci_params.pm_cap)
DP_NOTICE(cdev, "Cannot find power management capability\n"); DP_NOTICE(cdev, "Cannot find power management capability\n");
rc = qed_set_coherency_mask(cdev); rc = qed_set_coherency_mask(cdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment