linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Small fixes for jsm driver
@ 2007-03-13 22:29 Lennart Sorensen
  0 siblings, 0 replies; only message in thread
From: Lennart Sorensen @ 2007-03-13 22:29 UTC (permalink / raw)
  To: linux-kernel

The jsm driver fails when you try to use the TIOCSSERIAL ioctl.  The
reason is that the driver never sets uart_port.uartclk, causing the data
received using TIOCGSERIAL to not match the internal state of the driver.
This patch fixes this problem by settings the uartclk to the value used
by the serial_core (16 times the baud base).

Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca>

--- a/drivers/serial/jsm/jsm_tty.c	2007-03-13 15:53:39.000000000 -0400
+++ b/drivers/serial/jsm/jsm_tty.c	2007-03-13 15:55:15.000000000 -0400
@@ -471,6 +471,7 @@
 			continue;
 
 		brd->channels[i]->uart_port.irq = brd->irq;
+		brd->channels[i]->uart_port.uartclk = 14745600;
 		brd->channels[i]->uart_port.type = PORT_JSM;
 		brd->channels[i]->uart_port.iotype = UPIO_MEM;
 		brd->channels[i]->uart_port.membase = brd->re_map_membase;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-13 22:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-13 22:29 Small fixes for jsm driver Lennart Sorensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).