mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 08:48:48 +00:00
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: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
83f34bd436
commit
416cdf0635
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user