Small fixes for jsm driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lennart Sorensen
Date: Tuesday, March 13, 2007 - 3:29 pm

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;
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Small fixes for jsm driver, Lennart Sorensen, (Tue Mar 13, 3:29 pm)