Message ID | 1445829362-2738-3-git-send-email-weiyang@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
On 26/10/15 14:15, Wei Yang wrote: > This patch adds a weak function pcibios_bus_add_device() for arch dependent > code could do proper setup. For example, powerpc could setup EEH related > resources. > > Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> > Acked-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index 6fbd3f2..b7e30a7 100644 --- a/drivers/pci/bus.c +++ b/drivers/pci/bus.c @@ -267,6 +267,7 @@ bool pci_bus_clip_resource(struct pci_dev *dev, int idx) void __weak pcibios_resource_survey_bus(struct pci_bus *bus) { } +void __weak pcibios_bus_add_device(struct pci_dev *dev) { } /** * pci_bus_add_device - start driver for a single device * @dev: device to add @@ -277,6 +278,8 @@ void pci_bus_add_device(struct pci_dev *dev) { int retval; + pcibios_bus_add_device(dev); + /* * Can not put in pci_device_add yet because resources * are not assigned yet for some devices.