usb-serial: handle NULL termios methods as "no hardware changing support"
Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
ed1f12ec50
commit
337850917a
1 changed files with 2 additions and 0 deletions
|
@ -429,6 +429,8 @@ static void serial_set_termios (struct tty_struct *tty, struct ktermios * old)
|
|||
/* pass on to the driver specific version of this function if it is available */
|
||||
if (port->serial->type->set_termios)
|
||||
port->serial->type->set_termios(port, old);
|
||||
else
|
||||
tty_termios_copy_hw(tty->termios, old);
|
||||
}
|
||||
|
||||
static void serial_break (struct tty_struct *tty, int break_state)
|
||||
|
|
Loading…
Add table
Reference in a new issue