From patchwork Mon Jun 1 03:53:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SUGIOKA Toshinobu X-Patchwork-Id: 27144 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n514qcp8016294 for ; Mon, 1 Jun 2009 04:52:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751492AbZFAEv4 (ORCPT ); Mon, 1 Jun 2009 00:51:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751990AbZFAEv4 (ORCPT ); Mon, 1 Jun 2009 00:51:56 -0400 Received: from ns.itonet.jp ([61.199.205.34]:48955 "EHLO ns.itonet.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbZFAEvz (ORCPT ); Mon, 1 Jun 2009 00:51:55 -0400 X-Greylist: delayed 3493 seconds by postgrey-1.27 at vger.kernel.org; Mon, 01 Jun 2009 00:51:55 EDT Received: from xpsugioka (xpsugioka.itonet.co.jp [192.168.0.200]) by ns.itonet.jp (8.11.6/8.11.6) with ESMTP id n513rgp07418; Mon, 1 Jun 2009 12:53:42 +0900 Message-Id: <4.2.0.58.J.20090601123439.00b52740@router.itonet.co.jp> X-Sender: sugioka@gate.itonet.co.jp X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58.J Date: Mon, 01 Jun 2009 12:53:41 +0900 To: Paul Mundt From: SUGIOKA Toshinobu Subject: [PATCH] Fix SCI console output Cc: linux-sh@vger.kernel.org Mime-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Fix SCI transmission sequence in console output function. Signed-off-by: Toshinobu Sugioka SUGIOKA Toshinobu --- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 */