Thread (25 messages) 25 messages, 7 authors, 2014-03-08

Re: [PATCH v2 1/4] pci: OF: Fix the conversion of IO ranges into IO resources.

From: Arnd Bergmann <hidden>
Date: 2014-02-27 13:21:01
Also in: linux-arm-kernel, linux-pci, lkml

On Thursday 27 February 2014 13:06:39 Liviu Dudau wrote:
quoted hunk ↗ jump to hunk
+       res->flags = range->flags;
+       if (res->flags & IORESOURCE_IO) {
+               unsigned long port;
+               port = pci_address_to_pio(range->pci_addr);
+               if (port == (unsigned long)-1) {
+                       res->start = (resource_size_t)OF_BAD_ADDR;
+                       res->end = (resource_size_t)OF_BAD_ADDR;
+                       return;
+               }
I think this conflicts with the way that pci_address_to_pio() is
defined on powerpc, where it expects a CPU address as the input,
not a PCI i/o address.

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help