Re: [PATCH 1/6] of/pci: Provide support for parsing PCI DT ranges property

2013-03-25 Thread Andrew Murray
On Sat, Mar 23, 2013 at 01:37:04PM +, Thomas Petazzoni wrote: > > On Sat, 23 Mar 2013 10:41:56 +, Russell King - ARM Linux wrote: > > > Please look at how IORESOURCE_* stuff is defined: > > #define IORESOURCE_TYPE_BITS0x1f00 /* Resource type */ > > #define IORESOURCE_IO

Re: [PATCH 1/6] of/pci: Provide support for parsing PCI DT ranges property

2013-03-23 Thread Thomas Petazzoni
On Sat, 23 Mar 2013 10:41:56 +, Russell King - ARM Linux wrote: > Please look at how IORESOURCE_* stuff is defined: > #define IORESOURCE_TYPE_BITS0x1f00 /* Resource type */ > #define IORESOURCE_IO 0x0100 /* PCI/ISA I/O ports */ > #define IORESOURCE_MEM

Re: [PATCH 1/6] of/pci: Provide support for parsing PCI DT ranges property

2013-03-23 Thread Russell King - ARM Linux
On Sat, Mar 23, 2013 at 01:04:53PM +0900, Jingoo Han wrote: > - switch ((pci_space >> 24) & 0x3) { > - case 1: /* PCI IO space */ > + if (iter.flags & IORESOURCE_IO) { Please look at how IORESOURCE_* stuff is defined: #define IORESOURCE_TYPE_BITS0x00

[PATCH 1/6] of/pci: Provide support for parsing PCI DT ranges property

2013-03-22 Thread Jingoo Han
From: Andrew Murray This patch factors out common implementations patterns to reduce overall kernel code and provide a means for host bridge drivers to directly obtain struct resources from the DT's ranges property without relying on architecture specific DT handling. This will make it easier to