From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: Linus Torvalds <torvalds@osdl.org>
Cc: linux kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] H8/300 update (5/9) SCI driver fix
Date: Wed, 12 May 2004 01:37:07 +0900 [thread overview]
Message-ID: <m2vfj2rkcs.wl%ysato@users.sourceforge.jp> (raw)
- fix h8300 depend setup sequence
--
Yoshinori Sato
<ysato@users.sourceforge.jp>
diff -Nru linux-2.6.6/drivers/serial/sh-sci.c linux-2.6.6-h8300/drivers/serial/sh-sci.c
--- linux-2.6.6/drivers/serial/sh-sci.c 2004-05-11 14:30:46.000000000 +0900
+++ linux-2.6.6-h8300/drivers/serial/sh-sci.c 2004-05-11 19:21:26.000000000 +0900
@@ -904,14 +904,14 @@
{
struct sci_port *s = &sci_ports[port->line];
- sci_request_irq(s);
- sci_start_tx(port, 1);
- sci_start_rx(port, 1);
-
#if defined(__H8300S__)
h8300_sci_enable(port, sci_enable);
#endif
+ sci_request_irq(s);
+ sci_start_tx(port, 1);
+ sci_start_rx(port, 1);
+
return 0;
}
@@ -1328,6 +1328,7 @@
int bits = 8;
int parity = 'n';
int flow = 'n';
+ int ret;
if (co->index >= SCI_NPORTS)
co->index = 0;
@@ -1345,10 +1346,19 @@
#else
port->uartclk = CONFIG_CPU_CLOCK;
#endif
+#if defined(__H8300S__)
+ h8300_sci_enable(port, sci_enable);
+#endif
if (options)
uart_parse_options(options, &baud, &parity, &bits, &flow);
- return uart_set_options(port, co, baud, parity, bits, flow);
+ ret = uart_set_options(port, co, baud, parity, bits, flow);
+#if defined(__H8300H__) || defined(__H8300S__)
+ /* disable rx interrupt */
+ if (ret == 0)
+ sci_stop_rx(port);
+#endif
+ return ret;
}
static struct console serial_console = {
reply other threads:[~2004-05-11 16:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2vfj2rkcs.wl%ysato@users.sourceforge.jp \
--to=ysato@users.sourceforge.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox