Skip to content

Commit

Permalink
Small fixes for jsm driver
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Scott H Kilau <[email protected]>
Cc: Wendy Xiong <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Len Sorensen authored and Linus Torvalds committed May 8, 2007
1 parent 1a86b5e commit 3c04c27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/serial/jsm/jsm_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ int jsm_uart_port_init(struct jsm_board *brd)
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;
Expand Down

0 comments on commit 3c04c27

Please sign in to comment.