public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix SCI console output
@ 2009-06-01  3:53 SUGIOKA Toshinobu
  2009-06-01  4:59 ` Paul Mundt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: SUGIOKA Toshinobu @ 2009-06-01  3:53 UTC (permalink / raw)
  To: linux-sh

Fix SCI transmission sequence in console output function.

Signed-off-by: Toshinobu Sugioka <sugioka@itonet.co.jp>

diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c
index fa4d52a..a4cf107 100644
--- a/drivers/serial/sh-sci.c
+++ b/drivers/serial/sh-sci.c
@@ -151,9 +151,8 @@ static void sci_poll_put_char(struct uart_port *port, unsigned char c)
 		status = sci_in(port, SCxSR);
 	} while (!(status & SCxSR_TDxE(port)));
 
-	sci_in(port, SCxSR);            /* Dummy read */
-	sci_out(port, SCxSR, SCxSR_TDxE_CLEAR(port) & ~SCxSR_TEND(port));
 	sci_out(port, SCxTDR, c);
+	sci_out(port, SCxSR, SCxSR_TDxE_CLEAR(port) & ~SCxSR_TEND(port));
 }
 #endif /* CONFIG_CONSOLE_POLL || CONFIG_SERIAL_SH_SCI_CONSOLE */
 

SUGIOKA Toshinobu


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-01 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-01  3:53 [PATCH] Fix SCI console output SUGIOKA Toshinobu
2009-06-01  4:59 ` Paul Mundt
2009-06-01 11:34 ` SUGIOKA Toshinobu
2009-06-01 15:38 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox