Re: [PATCH 1/3] [RFC] pci: add new method for register PCI hosts

2016-05-03 Thread Arnd Bergmann
On Tuesday 03 May 2016 11:04:23 liviu.du...@arm.com wrote: > > > + list_splice_init(&bridge->windows, &resources); > > > + b->sysdata = bridge->sysdata; > > > > Does the sysdata not become effectively obsolete after this series? My > > understanding is that it's primarily used to store driver-

Re: [PATCH 1/3] [RFC] pci: add new method for register PCI hosts

2016-05-03 Thread Liviu . Dudau
On Mon, May 02, 2016 at 09:09:43AM +0200, Thierry Reding wrote: > On Sat, Apr 30, 2016 at 01:01:37AM +0200, Arnd Bergmann wrote: > > This patch makes the existing 'pci_host_bridge' structure a proper device > > that is usable by PCI host drivers in a more standard way. In addition > > to the existi

Re: [PATCH 1/3] [RFC] pci: add new method for register PCI hosts

2016-05-02 Thread Arnd Bergmann
On Monday 02 May 2016 09:35:41 Tomasz Nowicki wrote: > > +int pci_register_host(struct pci_host_bridge *bridge) > > { > > int error; > > - struct pci_host_bridge *bridge; > > struct pci_bus *b, *b2; > > struct resource_entry *window, *n; > > + LIST_HEAD(resources); > >

Re: [PATCH 1/3] [RFC] pci: add new method for register PCI hosts

2016-05-02 Thread Tomasz Nowicki
On 04/30/2016 01:01 AM, Arnd Bergmann wrote: This patch makes the existing 'pci_host_bridge' structure a proper device that is usable by PCI host drivers in a more standard way. In addition to the existing pci_scan_bus, pci_scan_root_bus, pci_scan_root_bus_msi, and pci_create_root_bus interfaces,

Re: [PATCH 1/3] [RFC] pci: add new method for register PCI hosts

2016-05-02 Thread Thierry Reding
On Sat, Apr 30, 2016 at 01:01:37AM +0200, Arnd Bergmann wrote: > This patch makes the existing 'pci_host_bridge' structure a proper device > that is usable by PCI host drivers in a more standard way. In addition > to the existing pci_scan_bus, pci_scan_root_bus, pci_scan_root_bus_msi, > and pci_cre

[PATCH 1/3] [RFC] pci: add new method for register PCI hosts

2016-04-29 Thread Arnd Bergmann
This patch makes the existing 'pci_host_bridge' structure a proper device that is usable by PCI host drivers in a more standard way. In addition to the existing pci_scan_bus, pci_scan_root_bus, pci_scan_root_bus_msi, and pci_create_root_bus interfaces, this unfortunately means having to add yet ano