Re: [PATCH 11/28] PCI: Introduce pci_host_bridge_ops to setup host bridge

2015-01-16 Thread Arnd Bergmann
On Friday 16 January 2015 10:23:11 Arnd Bergmann wrote: > On Friday 16 January 2015 09:44:09 Yijing Wang wrote: > > @@ -2064,7 +2073,7 @@ struct pci_bus *pci_scan_root_bus(struct device > > *parent, u32 db, > > { > > struct pci_host_bridge *host; > > > > - host = pci_create_host_b

Re: [PATCH 11/28] PCI: Introduce pci_host_bridge_ops to setup host bridge

2015-01-16 Thread Arnd Bergmann
On Friday 16 January 2015 09:44:09 Yijing Wang wrote: > @@ -2064,7 +2073,7 @@ struct pci_bus *pci_scan_root_bus(struct device > *parent, u32 db, > { > struct pci_host_bridge *host; > > - host = pci_create_host_bridge(parent, db, resources, sysdata); > + host = pci_create_hos

[PATCH 11/28] PCI: Introduce pci_host_bridge_ops to setup host bridge

2015-01-15 Thread Yijing Wang
Now we have weak functions like pcibios_root_bridge_prepare() to setup pci host bridge, We could introduce pci_host_bridge_ops which contain host bridge specific ops to setup pci_host_bridge. Then host bridge driver could add pci_host_bridge_ops hooks intead of weak function to setup pci_host_bridg