[PATCH v2 19/27] pci: PCIe driver for Marvell Armada 370/XP systems
From: Jason Gunthorpe <hidden>
Date: 2013-02-01 19:58:04
Also in:
linux-pci
From: Jason Gunthorpe <hidden>
Date: 2013-02-01 19:58:04
Also in:
linux-pci
On Fri, Feb 01, 2013 at 05:45:29PM +0000, Arnd Bergmann wrote:
Yes, that was my point. I think in this case, the bug is in the new of_pci_process_ranges functions, which returns a 'struct resource' translated into IORESOURCE_MEM space, but with the type set to IORESOURCE_IO. This resource then gets passed to pci_add_resource_offset().
A standard way to express the required address translation from CPU physical address to IO bus address might help other people avoid this trap?? Jason