aboutsummaryrefslogtreecommitdiff
path: root/hw/phb3.c
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2014-08-27 22:57:44 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-29 06:03:05 +1000
commit434073649f932b6b4b6f240006a48e24205f5a11 (patch)
tree494bf2db6893095856c4d1db17f36b0fffe1844e /hw/phb3.c
parent308423515ab9a7213fee7f6992eb9f675caef128 (diff)
downloadskiboot-434073649f932b6b4b6f240006a48e24205f5a11.zip
skiboot-434073649f932b6b4b6f240006a48e24205f5a11.tar.gz
skiboot-434073649f932b6b4b6f240006a48e24205f5a11.tar.bz2
PCI: Add pci_device_init()
The patch adds function pci_device_init(), which is called by phb->ops->device_init() to apply common initialization on the specified PCI device during bootup or after PE reset. Currently, we only put the logic of MPS configuration to the function, but more will be put there. Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hw/phb3.c')
-rw-r--r--hw/phb3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/phb3.c b/hw/phb3.c
index 6ee0527..f1652d0 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -436,8 +436,8 @@ static void phb3_device_init(struct phb *phb, struct pci_device *dev)
}
}
- /* Reconfigure the MPS */
- pci_configure_mps(phb, dev);
+ /* Common initialization for the device */
+ pci_device_init(phb, dev);
if (dev->dev_type == PCIE_TYPE_ROOT_PORT)
phb3_root_port_init(phb, dev, ecap, aercap);