diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2017-02-10 12:20:00 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-02-16 16:50:53 +1100 |
commit | b200ee0ccb1d00622ff0ba411aa97ee8104cab61 (patch) | |
tree | 6a36cf3da536c881611165ce2bb487825703f873 /core/pci.c | |
parent | 6f05217fe0a2b8c35be4fb5cc4294904ec635bb2 (diff) | |
download | skiboot-b200ee0ccb1d00622ff0ba411aa97ee8104cab61.zip skiboot-b200ee0ccb1d00622ff0ba411aa97ee8104cab61.tar.gz skiboot-b200ee0ccb1d00622ff0ba411aa97ee8104cab61.tar.bz2 |
core/pci: Allow associating parameter with capability
When we start to support SRIOV capability in subsequent patches,
a data struct will be instantiated and associated with the SRIOV
capability. This extends the current implementation for that.
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/pci.c')
-rw-r--r-- | core/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -160,7 +160,7 @@ static void pci_init_pcie_cap(struct phb *phb, struct pci_device *pd) return; } - pci_set_cap(pd, PCI_CFG_CAP_ID_EXP, ecap, false); + pci_set_cap(pd, PCI_CFG_CAP_ID_EXP, ecap, NULL, false); /* * XXX We observe a problem on some PLX switches where one @@ -197,7 +197,7 @@ static void pci_init_aer_cap(struct phb *phb, struct pci_device *pd) pos = pci_find_ecap(phb, pd->bdfn, PCIECAP_ID_AER, NULL); if (pos > 0) - pci_set_cap(pd, PCIECAP_ID_AER, pos, true); + pci_set_cap(pd, PCIECAP_ID_AER, pos, NULL, true); } void pci_init_capabilities(struct phb *phb, struct pci_device *pd) |