mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 18:36:00 +00:00
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
@ -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…
x
Reference in New Issue
Block a user