projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83f34bd
)
qed: VFs gracefully accept lack of PM
author
Yuval Mintz
<Yuval.Mintz@qlogic.com>
Sun, 15 May 2016 11:48:09 +0000
(14:48 +0300)
committer
David S. Miller
<davem@davemloft.net>
Mon, 16 May 2016 17:59:19 +0000
(13:59 -0400)
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>
drivers/net/ethernet/qlogic/qed/qed_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qlogic/qed/qed_main.c
b/drivers/net/ethernet/qlogic/qed/qed_main.c
index
6ffc21d
..
56f6bc1
100644
(file)
--- a/
drivers/net/ethernet/qlogic/qed/qed_main.c
+++ b/
drivers/net/ethernet/qlogic/qed/qed_main.c
@@
-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);