Re: [PATCH v11 08/10] OF: PCI: Add support for parsing PCI host bridge resources from DT
From: Robert Richter
Date: Mon Sep 22 2014 - 05:32:41 EST
On 18.09.14 02:30:23, Liviu Dudau wrote:
> +int of_pci_get_host_bridge_resources(struct device_node *dev,
> + unsigned char busno, unsigned char bus_max,
> + struct list_head *resources, resource_size_t *io_base)
> +{
> + struct resource *res;
> + struct resource *bus_range;
> + struct of_pci_range range;
> + struct of_pci_range_parser parser;
> + char range_type[4];
> + int err;
> +
> + if (!io_base)
> + return -EINVAL;
> + *io_base = OF_BAD_ADDR;
This breaks for mem-mapped pci host controllers. The patch below fixes
this.
This series was tested with the fix on top for Cavium Thunder.
Tested-by: Robert Richter <rrichter@xxxxxxxxxx>
-Robert