Commit 70dcd942 authored by Michal Simek's avatar Michal Simek

microblaze: Fix IO space breakage after of_pci_range_to_resource() change

Commit 0b0b0893 "of/pci: Fix the conversion of IO ranges into IO
resources" changed the behaviour of of_pci_range_to_resource().

The issue is described here:
"powerpc/pci: Fix IO space breakage after of_pci_range_to_resource()
change"
(sha1: aeba3731)
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 4cbbbb43
...@@ -660,8 +660,13 @@ void pci_process_bridge_OF_ranges(struct pci_controller *hose, ...@@ -660,8 +660,13 @@ void pci_process_bridge_OF_ranges(struct pci_controller *hose,
res = &hose->mem_resources[memno++]; res = &hose->mem_resources[memno++];
break; break;
} }
if (res != NULL) if (res != NULL) {
of_pci_range_to_resource(&range, dev, res); res->name = dev->full_name;
res->flags = range.flags;
res->start = range.cpu_addr;
res->end = range.cpu_addr + range.size - 1;
res->parent = res->child = res->sibling = NULL;
}
} }
/* If there's an ISA hole and the pci_mem_offset is -not- matching /* If there's an ISA hole and the pci_mem_offset is -not- matching
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment