Skip to content

Commit 2ba30ee

Browse files
Nicolas PitrePierre Ossman
authored andcommitted
sdio: add default c_ispeed/c_ospeed values to sdio_uart driver
Note that the default baudrate is 4800 instead of 9600 as a convenience because that's what GPS devices want which is still the main use for this driver. Signed-off-by: Nicolas Pitre <npitre@mvista.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
1 parent 7806cdb commit 2ba30ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mmc/card/sdio_uart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,8 @@ static int __init sdio_uart_init(void)
11061106
tty_drv->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;
11071107
tty_drv->init_termios = tty_std_termios;
11081108
tty_drv->init_termios.c_cflag = B4800 | CS8 | CREAD | HUPCL | CLOCAL;
1109+
tty_drv->init_termios.c_ispeed = 4800;
1110+
tty_drv->init_termios.c_ospeed = 4800;
11091111
tty_set_operations(tty_drv, &sdio_uart_ops);
11101112

11111113
ret = tty_register_driver(tty_drv);

0 commit comments

Comments
 (0)