of/irq: Fix pSeries boot failure
authorJeremy Linton <lintonrjeremy@gmail.com>
Mon, 29 Jun 2015 23:50:55 +0000 (18:50 -0500)
committerGrant Likely <grant.likely@linaro.org>
Tue, 30 Jun 2015 15:55:30 +0000 (16:55 +0100)
commitd23b251669e20b3989643d9c38228039c510478f
treec0561c2213aea378363871d68190fb21d503bcc6
parentbecfc3c86df963491ff1d5ffc6131a06af6bb851
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>
drivers/of/irq.c