Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=49d23cfcec5d36a91e118d28148d353bf8f0bc03 Commit: 49d23cfcec5d36a91e118d28148d353bf8f0bc03 Parent: 7a05b591a3de20466a775f62369a42ea0fe1345d Author: David S. Miller <[EMAIL PROTECTED]> AuthorDate: Sun May 13 22:01:18 2007 -0700 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Sun May 13 22:01:18 2007 -0700
[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 <[EMAIL PROTECTED]> --- arch/sparc64/kernel/of_device.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c index 7455f5d..16cc46a 100644 --- a/arch/sparc64/kernel/of_device.c +++ b/arch/sparc64/kernel/of_device.c @@ -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; } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html