Re: [PATCH v6 2/6] pci: OF: Fix the conversion of IO ranges into IO resources.

2014-03-08 Thread Arnd Bergmann
On Wednesday 05 March 2014, Liviu Dudau wrote: > + unsigned long port = -1; > + if (!pci_register_io_range(range->cpu_addr, range->size)) > + port = pci_address_to_pio(range->cpu_addr); I don't remember the outcome of my suggestion to just return

Re: [PATCH v6 2/6] pci: OF: Fix the conversion of IO ranges into IO resources.

2014-03-08 Thread Arnd Bergmann
On Wednesday 05 March 2014, Liviu Dudau wrote: + unsigned long port = -1; + if (!pci_register_io_range(range-cpu_addr, range-size)) + port = pci_address_to_pio(range-cpu_addr); I don't remember the outcome of my suggestion to just return 'port'

Re: [PATCH v6 2/6] pci: OF: Fix the conversion of IO ranges into IO resources.

2014-03-07 Thread Grant Likely
On Wed, 5 Mar 2014 11:48:53 +, Liviu Dudau wrote: > The ranges property for a host bridge controller in DT describes > the mapping between the PCI bus address and the CPU physical address. > The resources framework however expects that the IO resources start > at a pseudo "port" address 0

Re: [PATCH v6 2/6] pci: OF: Fix the conversion of IO ranges into IO resources.

2014-03-07 Thread Grant Likely
On Wed, 5 Mar 2014 11:48:53 +, Liviu Dudau liviu.du...@arm.com wrote: The ranges property for a host bridge controller in DT describes the mapping between the PCI bus address and the CPU physical address. The resources framework however expects that the IO resources start at a pseudo port

[PATCH v6 2/6] pci: OF: Fix the conversion of IO ranges into IO resources.

2014-03-05 Thread Liviu Dudau
The ranges property for a host bridge controller in DT describes the mapping between the PCI bus address and the CPU physical address. The resources framework however expects that the IO resources start at a pseudo "port" address 0 (zero) and have a maximum size of IO_SPACE_LIMIT. The conversion

[PATCH v6 2/6] pci: OF: Fix the conversion of IO ranges into IO resources.

2014-03-05 Thread Liviu Dudau
The ranges property for a host bridge controller in DT describes the mapping between the PCI bus address and the CPU physical address. The resources framework however expects that the IO resources start at a pseudo port address 0 (zero) and have a maximum size of IO_SPACE_LIMIT. The conversion