aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-07-03 02:01:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-25 17:07:32 -0400
commita5ed6be766e6ca8f83ef0afea688ef9c760916d3 (patch)
tree073658d841057c493405fbfd68a6ffe3c206c66c
parent369cf4be7588876d071c86d0efb7908e9bba7f6f (diff)
of: Fix address decoding on Bimini and js2x machines
commit 6dd18e4684f3d188277bbbc27545248487472108 upstream. Commit: e38c0a1fbc5803cbacdaac0557c70ac8ca5152e7 of/address: Handle #address-cells > 2 specially broke real time clock access on Bimini, js2x, and similar powerpc machines using the "maple" platform. That code was indirectly relying on the old (broken) behaviour of the translation for the hypertransport to ISA bridge. This fixes it by treating hypertransport as a PCI bus Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Grant Likely <grant.likely@linaro.org> Cc: Jonghwan Choi <jhbird.choi@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/of/address.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c
index 04da786c84d2..7c8221d36329 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -106,8 +106,12 @@ static unsigned int of_bus_default_get_flags(const __be32 *addr)
106 106
107static int of_bus_pci_match(struct device_node *np) 107static int of_bus_pci_match(struct device_node *np)
108{ 108{
109 /* "vci" is for the /chaos bridge on 1st-gen PCI powermacs */ 109 /*
110 return !strcmp(np->type, "pci") || !strcmp(np->type, "vci"); 110 * "vci" is for the /chaos bridge on 1st-gen PCI powermacs
111 * "ht" is hypertransport
112 */
113 return !strcmp(np->type, "pci") || !strcmp(np->type, "vci") ||
114 !strcmp(np->type, "ht");
111} 115}
112 116
113static void of_bus_pci_count_cells(struct device_node *np, 117static void of_bus_pci_count_cells(struct device_node *np,