From: NIIBE Y. <gn...@ch...> - 2000-09-27 02:34:21
|
According to the manual setting of SCFCR register should be done, after the SCBRR register setting. So, I think following patch is needed. I didn't tested this well. I need your feedback. I try this as I have serial troubles in 115200 with my dreamcast. I hope this makes sence... Not committed yet. 2000-09-27 NIIBE Yutaka <gn...@m1...> * drivers/char/sh-sci.c (sci_set_termios_cflag): Call init_pins AFTER setting baud. Index: drivers/char/sh-sci.c =================================================================== RCS file: /cvsroot/linuxsh/kernel/drivers/char/sh-sci.c,v retrieving revision 1.21 diff -u -p -r1.21 sh-sci.c --- drivers/char/sh-sci.c 2000/09/17 18:59:32 1.21 +++ drivers/char/sh-sci.c 2000/09/27 02:27:40 @@ -381,10 +381,9 @@ static void sci_set_termios_cflag(struct if (cflag & CSTOPB) smr_val |= 0x08; sci_out(port, SCSMR, smr_val); + sci_set_baud(port, baud); port->init_pins(port, cflag); - - sci_set_baud(port, baud); sci_out(port, SCSCR, SCSCR_INIT(port)); } |