Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49d23cfc authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Be more resiliant with PCI I/O space regs.



If we miss on the ranges, just toss the translation up to the parent
instead of failing.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7a05b591
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -537,6 +537,13 @@ static int __init build_one_resource(struct device_node *parent,
			return 0;
	}

	/* When we miss an I/O space match on PCI, just pass it up
	 * to the next PCI bridge and/or controller.
	 */
	if (!strcmp(bus->name, "pci") &&
	    (addr[0] & 0x03000000) == 0x01000000)
		return 0;

	return 1;
}