Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-13 Thread Liviu Dudau
et...@vger.kernel.org; linaro-kernel; > > linux-pci; Will Deacon; > > LKML; Catalin Marinas; Bjorn Helgaas; LAKML > > Subject: Re: [PATCH] pci: Add support for creating a generic host_bridge > > from device tree > > > > On Thu, Feb 13, 2014 at 12:10 AM, Jingoo Han

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-13 Thread Arnd Bergmann
On Thursday 13 February 2014 11:53:27 Russell King - ARM Linux wrote: > On Thu, Feb 13, 2014 at 12:27:05PM +0100, Arnd Bergmann wrote: > > I would rather get rid of struct hw_pci for architecture independent > > drivers and add a different registration method on arm32 that is > > compatible with wh

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-13 Thread Russell King - ARM Linux
On Thu, Feb 13, 2014 at 12:27:05PM +0100, Arnd Bergmann wrote: > I would rather get rid of struct hw_pci for architecture independent > drivers and add a different registration method on arm32 that is > compatible with what we come up with on arm64. The main purpose of > hw_pci is to allow multiple

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-13 Thread Arnd Bergmann
On Thursday 13 February 2014 17:57:41 Jingoo Han wrote: > I want to use 'drivers/pci/host/pcie-designware.c' for both arm32 > and arm64, without any code changes. However, it looks impossible. It is impossible at the moment, and I agree we have to fix that. > I made 'drivers/pci/host/pcie-designw

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-13 Thread Jingoo Han
Bjorn Helgaas; LAKML > Subject: Re: [PATCH] pci: Add support for creating a generic host_bridge from > device tree > > On Thu, Feb 13, 2014 at 12:10 AM, Jingoo Han wrote: > > On Thursday, February 06, 2014 7:18 PM, Liviu Dudau wrote: > >> On Wed, Feb 05, 2014 at 10:26:27PM

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-13 Thread Tanmay Inamdar
On Thu, Feb 13, 2014 at 12:10 AM, Jingoo Han wrote: > On Thursday, February 06, 2014 7:18 PM, Liviu Dudau wrote: >> On Wed, Feb 05, 2014 at 10:26:27PM +, Tanmay Inamdar wrote: >> > Hello Liviu, >> > >> > I did not get the first email of this particular patch on any of >> > subscribed mailing l

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-13 Thread Jingoo Han
;linux-pci'; 'Will Deacon'; 'LKML'; > 'Catalin Marinas'; 'Bjorn Helgaas'; 'LAKML'; 'Jingoo Han' > Subject: Re: [PATCH] pci: Add support for creating a generic host_bridge from > device tree > > On Thursday, February 06

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-13 Thread Jingoo Han
On Thursday, February 06, 2014 7:18 PM, Liviu Dudau wrote: > On Wed, Feb 05, 2014 at 10:26:27PM +, Tanmay Inamdar wrote: > > Hello Liviu, > > > > I did not get the first email of this particular patch on any of > > subscribed mailing lists (don't know why), hence replying here. > > Strange, it

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-10 Thread Tanmay Inamdar
On Sat, Feb 8, 2014 at 6:22 AM, Liviu Dudau wrote: > On Sat, Feb 08, 2014 at 12:21:56AM +, Tanmay Inamdar wrote: >> On Thu, Feb 6, 2014 at 2:18 AM, Liviu Dudau wrote: >> > On Wed, Feb 05, 2014 at 10:26:27PM +, Tanmay Inamdar wrote: >> >> Hello Liviu, >> >> >> >> I did not get the first em

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-09 Thread Arnd Bergmann
On Saturday 08 February 2014, Liviu Dudau wrote: > Yes, that parsing code of ranges is incorrect in light of the current > discussion. I > will try to propose a fix in the v2 series. > > Regarding your PCI IO range: if your bus address starts at 0x8000_, would > that not cause problems with d

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-08 Thread Liviu Dudau
On Sat, Feb 08, 2014 at 12:21:56AM +, Tanmay Inamdar wrote: > On Thu, Feb 6, 2014 at 2:18 AM, Liviu Dudau wrote: > > On Wed, Feb 05, 2014 at 10:26:27PM +, Tanmay Inamdar wrote: > >> Hello Liviu, > >> > >> I did not get the first email of this particular patch on any of > >> subscribed mail

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-07 Thread Tanmay Inamdar
On Thu, Feb 6, 2014 at 2:18 AM, Liviu Dudau wrote: > On Wed, Feb 05, 2014 at 10:26:27PM +, Tanmay Inamdar wrote: >> Hello Liviu, >> >> I did not get the first email of this particular patch on any of >> subscribed mailing lists (don't know why), hence replying here. > > Strange, it shows in th

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-06 Thread Liviu Dudau
On Wed, Feb 05, 2014 at 10:26:27PM +, Tanmay Inamdar wrote: > Hello Liviu, > > I did not get the first email of this particular patch on any of > subscribed mailing lists (don't know why), hence replying here. Strange, it shows in the MARC and GMANE archive for linux-pci, probably a hickup on

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-05 Thread Tanmay Inamdar
Hello Liviu, I did not get the first email of this particular patch on any of subscribed mailing lists (don't know why), hence replying here. +struct pci_host_bridge * +pci_host_bridge_of_init(struct device *parent, int busno, struct pci_ops *ops, + void *host_data, struct list_head *resources) +

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-04 Thread Arnd Bergmann
On Tuesday 04 February 2014, Liviu Dudau wrote: > On Tue, Feb 04, 2014 at 10:09:44AM +, Arnd Bergmann wrote: > > On Monday 03 February 2014 22:17:44 Liviu Dudau wrote: > > > On Mon, Feb 03, 2014 at 07:31:31PM +, Arnd Bergmann wrote: > > > > The aperture here reflects the subset of the > > >

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-04 Thread Liviu Dudau
On Tue, Feb 04, 2014 at 10:09:44AM +, Arnd Bergmann wrote: > On Monday 03 February 2014 22:17:44 Liviu Dudau wrote: > > On Mon, Feb 03, 2014 at 07:31:31PM +, Arnd Bergmann wrote: > > > Let's try to come up with nomenclature so we can talk about this better > > > > > > The ioport_resource is

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-04 Thread Arnd Bergmann
On Monday 03 February 2014 22:17:44 Liviu Dudau wrote: > On Mon, Feb 03, 2014 at 07:31:31PM +, Arnd Bergmann wrote: > > Let's try to come up with nomenclature so we can talk about this better > > > > The ioport_resource is in "logical I/O space", which is a Linux fiction, > > it goes from 0 to

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-03 Thread Liviu Dudau
On Mon, Feb 03, 2014 at 07:31:31PM +, Arnd Bergmann wrote: > On Monday 03 February 2014 19:06:49 Liviu Dudau wrote: > > On Mon, Feb 03, 2014 at 06:46:10PM +, Arnd Bergmann wrote: > > > On Monday 03 February 2014 18:33:48 Liviu Dudau wrote: > > > > +/** > > > > + * pci_host_bridge_of_get_ran

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-03 Thread Arnd Bergmann
On Monday 03 February 2014 19:06:49 Liviu Dudau wrote: > On Mon, Feb 03, 2014 at 06:46:10PM +, Arnd Bergmann wrote: > > On Monday 03 February 2014 18:33:48 Liviu Dudau wrote: > > > +/** > > > + * pci_host_bridge_of_get_ranges - Parse PCI host bridge resources from > > > DT > > > + * @dev: devi

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-03 Thread Liviu Dudau
Hi Arnd, First of all, thanks for reviewing this! On Mon, Feb 03, 2014 at 06:46:10PM +, Arnd Bergmann wrote: > On Monday 03 February 2014 18:33:48 Liviu Dudau wrote: > > +/** > > + * pci_host_bridge_of_get_ranges - Parse PCI host bridge resources from DT > > + * @dev: device node of the host

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-03 Thread Arnd Bergmann
On Monday 03 February 2014 18:33:48 Liviu Dudau wrote: > +/** > + * pci_host_bridge_of_get_ranges - Parse PCI host bridge resources from DT > + * @dev: device node of the host bridge having the range property > + * @resources: list where the range of resources will be added after DT > parsing > +