Skip to content

Commit

Permalink
[SPARC64]: Be more resiliant with PCI I/O space regs.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed May 14, 2007
1 parent 7a05b59 commit 49d23cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/sparc64/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 49d23cf

Please sign in to comment.