[PATCH] 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: David S. Miller <davem@davemloft.net> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
This commit is contained in:
committed by
Chris Wright
parent
8492a8ba65
commit
6514fa9654
@@ -508,6 +508,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user