]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] SPARC: Linux always started with 9600 8N1
authorJan Engelhardt <jengelh@gmx.de>
Thu, 7 Jun 2007 05:49:14 +0000 (22:49 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 11 Jun 2007 18:36:52 +0000 (11:36 -0700)
commitbd6363577de84223b2a2f798648cd88f87a12f94
tree70653f2047e752928dd97ae170a50a73168dbf12
parent97093e95428af6b8bca62a639baffc893f32ba22
[PATCH] SPARC: Linux always started with 9600 8N1

The Linux kernel ignored the PROM's serial settings (115200,n,8,1 in
my case). This was because mode_prop remained "ttyX-mode" (expected:
"ttya-mode") due to the constness of string literals when used with
"char *". Since there is no "ttyX-mode" property in the PROM, Linux
always used the default 9600.

[ Investigation of the suncore.s assembler reveals that gcc optimizied
  away the stores, yet did not emit a warning, which is a pretty
  anti-social thing to do and is the only reason this bug lived for
  so long -DaveM ]

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/suncore.c