Commit f5903ede authored by Michael Ellerman's avatar Michael Ellerman Committed by Paul Mackerras

[POWERPC] Fix legacy serial search for opb bus ports

The patch to legacy_serial.c (1a7507c7,
Reduce code duplication in legacy_serial, add UART parent types) changed
the semantics for opb ports from type = "opb" || compatible = "ibm,opb"
to type = "opb" && compatible = "ibm,opb".

The result is serial ports on our QS21s (Cell blades) don't get found,
and for some reason the machine doesn't boot at all - possibly it's
panicking due to lack of a console?

The fix is to add two entries to the of_device_id table, one that looks
for type = "opb" and the other compatible = "ibm,opb".
Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Acked-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent ad7f7167
...@@ -36,7 +36,8 @@ static struct legacy_serial_info { ...@@ -36,7 +36,8 @@ static struct legacy_serial_info {
static struct __initdata of_device_id parents[] = { static struct __initdata of_device_id parents[] = {
{.type = "soc",}, {.type = "soc",},
{.type = "tsi-bridge",}, {.type = "tsi-bridge",},
{.type = "opb", .compatible = "ibm,opb",}, {.type = "opb", },
{.compatible = "ibm,opb",},
{.compatible = "simple-bus",}, {.compatible = "simple-bus",},
{.compatible = "wrs,epld-localbus",}, {.compatible = "wrs,epld-localbus",},
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment