aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorLen Sorensen <lsorense@csclub.uwaterloo.ca>2007-05-08 03:26:30 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:03 -0400
commit3c04c27251c4d064f16846c305cbc1ff2f5b5fbe (patch)
treeade42ebf24d88d4b9ce6f8d4d16a72ced20a745a /drivers/serial
parent1a86b5e34e4d09e3246a983c53929ce38af52275 (diff)
Small fixes for jsm driver
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> Cc: Scott H Kilau <Scott_Kilau@digi.com> Cc: Wendy Xiong <wendyx@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/jsm/jsm_tty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/jsm/jsm_tty.c b/drivers/serial/jsm/jsm_tty.c
index be22bbdbc8e5..281f23a371b2 100644
--- a/drivers/serial/jsm/jsm_tty.c
+++ b/drivers/serial/jsm/jsm_tty.c
@@ -448,6 +448,7 @@ int jsm_uart_port_init(struct jsm_board *brd)
448 continue; 448 continue;
449 449
450 brd->channels[i]->uart_port.irq = brd->irq; 450 brd->channels[i]->uart_port.irq = brd->irq;
451 brd->channels[i]->uart_port.uartclk = 14745600;
451 brd->channels[i]->uart_port.type = PORT_JSM; 452 brd->channels[i]->uart_port.type = PORT_JSM;
452 brd->channels[i]->uart_port.iotype = UPIO_MEM; 453 brd->channels[i]->uart_port.iotype = UPIO_MEM;
453 brd->channels[i]->uart_port.membase = brd->re_map_membase; 454 brd->channels[i]->uart_port.membase = brd->re_map_membase;