Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: Fix IO space breakage after of_pci_range_to_resource() change

Commit 0b0b0893d49b "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: aeba3731b150188685225b510886f1370d8814de)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>

+7 -2
+7 -2
arch/microblaze/pci/pci-common.c
··· 660 660 res = &hose->mem_resources[memno++]; 661 661 break; 662 662 } 663 - if (res != NULL) 664 - of_pci_range_to_resource(&range, dev, res); 663 + if (res != NULL) { 664 + res->name = dev->full_name; 665 + res->flags = range.flags; 666 + res->start = range.cpu_addr; 667 + res->end = range.cpu_addr + range.size - 1; 668 + res->parent = res->child = res->sibling = NULL; 669 + } 665 670 } 666 671 667 672 /* If there's an ISA hole and the pci_mem_offset is -not- matching