linux/arch/sparc/prom
David S. Miller c73fcc846c [SPARC]: Fix serial console device detection.
The current scheme works on static interpretation of text names, which
is wrong.

The output-device setting, for example, must be resolved via an alias
or similar to a full path name to the console device.

Paths also contain an optional set of 'options', which starts with a
colon at the end of the path.  The option area is used to specify
which of two serial ports ('a' or 'b') the path refers to when a
device node drives multiple ports.  'a' is assumed if the option
specification is missing.

This was caught by the UltraSPARC-T1 simulator.  The 'output-device'
property was set to 'ttya' and we didn't pick upon the fact that this
is an OBP alias set to '/virtual-devices/console'.  Instead we saw it
as the first serial console device, instead of the hypervisor console.

The infrastructure is now there to take advantage of this to resolve
the console correctly even in multi-head situations in fbcon too.

Thanks to Greg Onufer for the bug report.

Signed-off-by: David S. Miller <davem@davemloft.net>
2007-07-20 16:59:26 -07:00
..
bootstr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
console.c [SPARC]: Fix serial console device detection. 2007-07-20 16:59:26 -07:00
devmap.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
devops.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
init.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
memory.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
misc.c [SPARC]: Fix serial console device detection. 2007-07-20 16:59:26 -07:00
mp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
palloc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
printf.c [SPARC]: Spelling fixes. 2007-05-11 21:39:20 -07:00
ranges.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
segment.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sun4prom.c [PATCH] sparc NULL noise removal 2005-05-04 07:33:13 -07:00
tree.c [SPARC]: Kill prom_getname, unused and not implemented properly. 2006-07-21 14:17:55 -07:00