|
@@ -115,6 +115,8 @@ static int ttyport_open(struct serdev_controller *ctrl)
|
|
ktermios.c_cflag &= ~(CSIZE | PARENB);
|
|
ktermios.c_cflag &= ~(CSIZE | PARENB);
|
|
ktermios.c_cflag |= CS8;
|
|
ktermios.c_cflag |= CS8;
|
|
ktermios.c_cflag |= CRTSCTS;
|
|
ktermios.c_cflag |= CRTSCTS;
|
|
|
|
+ /* Hangups are not supported so make sure to ignore carrier detect. */
|
|
|
|
+ ktermios.c_cflag |= CLOCAL;
|
|
tty_set_termios(tty, &ktermios);
|
|
tty_set_termios(tty, &ktermios);
|
|
|
|
|
|
set_bit(SERPORT_ACTIVE, &serport->flags);
|
|
set_bit(SERPORT_ACTIVE, &serport->flags);
|