Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	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");

	rc = qed_set_coherency_mask(cdev);