Re: [PATCH 2/3] [RFC] pci: host-common: use new pci_register_host interface

2016-05-04 Thread Arnd Bergmann
On Wednesday 04 May 2016 18:14:18 Bjorn Helgaas wrote: > On Sat, Apr 30, 2016 at 01:01:38AM +0200, Arnd Bergmann wrote: > > > > +static void gen_pci_release(struct device *dev) > > +{ > > + struct gen_pci *pci = container_of(dev, struct gen_pci, host.dev); > > + > > + gen_pci_release_of_pci_

Re: [PATCH 2/3] [RFC] pci: host-common: use new pci_register_host interface

2016-05-04 Thread Bjorn Helgaas
On Sat, Apr 30, 2016 at 01:01:38AM +0200, Arnd Bergmann wrote: > This changes the pci-host-common implementation to call the > new pci_register_host() interface instead of pci_scan_root_bus(). > > As a result, we get to share the pci_host_bridge structure > as it was originally intended anyway: We

[PATCH 2/3] [RFC] pci: host-common: use new pci_register_host interface

2016-04-29 Thread Arnd Bergmann
This changes the pci-host-common implementation to call the new pci_register_host() interface instead of pci_scan_root_bus(). As a result, we get to share the pci_host_bridge structure as it was originally intended anyway: We ended up having two copies of pci_host_bridge here because we never got