aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorJeremy Linton <lintonrjeremy@gmail.com>2015-06-29 19:50:55 -0400
committerGrant Likely <grant.likely@linaro.org>2015-06-30 11:55:30 -0400
commitd23b251669e20b3989643d9c38228039c510478f (patch)
treec0561c2213aea378363871d68190fb21d503bcc6 /drivers/of
parentbecfc3c86df963491ff1d5ffc6131a06af6bb851 (diff)
of/irq: Fix pSeries boot failure
of_irq_parse_raw() needs to return the correct interrupt controller node when an interrupt-map property doesn't exist. It allows of_irq_parse_raw() to return the node pointer of the interrupt controller, rather than the parent bus. This allows ics_rtas_host_match() to detect that the controller is a legacy 8259 and avoid using xics. This avoids an RTAS assertion/crash during early kernel bootstrapping. Signed-off-by: Jeremy Linton <lintonrjeremy@gmail.com> Reviewed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/irq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index 1a7980692f25..cb4b9aeaa10d 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -252,8 +252,6 @@ int of_irq_parse_raw(const __be32 *addr, struct of_phandle_args *out_irq)
252 * Successfully parsed an interrrupt-map translation; copy new 252 * Successfully parsed an interrrupt-map translation; copy new
253 * interrupt specifier into the out_irq structure 253 * interrupt specifier into the out_irq structure
254 */ 254 */
255 out_irq->np = newpar;
256
257 match_array = imap - newaddrsize - newintsize; 255 match_array = imap - newaddrsize - newintsize;
258 for (i = 0; i < newintsize; i++) 256 for (i = 0; i < newintsize; i++)
259 out_irq->args[i] = be32_to_cpup(imap - newintsize + i); 257 out_irq->args[i] = be32_to_cpup(imap - newintsize + i);
@@ -262,6 +260,7 @@ int of_irq_parse_raw(const __be32 *addr, struct of_phandle_args *out_irq)
262 260
263 skiplevel: 261 skiplevel:
264 /* Iterate again with new parent */ 262 /* Iterate again with new parent */
263 out_irq->np = newpar;
265 pr_debug(" -> new parent: %s\n", of_node_full_name(newpar)); 264 pr_debug(" -> new parent: %s\n", of_node_full_name(newpar));
266 of_node_put(ipar); 265 of_node_put(ipar);
267 ipar = newpar; 266 ipar = newpar;