OSDN Git Service

serial: core, do not set DTR/RTS twice on startup
authorJiri Slaby <jslaby@suse.cz>
Tue, 29 Mar 2011 22:10:56 +0000 (00:10 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:34 +0000 (15:05 -0700)
commit8d99e578d8688d146e37d6fa099e7e7d4b14ab21
tree8bf4c0eaad4de61c9ceb71c79806d63b4d571e0a
parentb218cdecace041cad6d46b1f5a4e57fb9976f598
serial: core, do not set DTR/RTS twice on startup

commit 303a7a1199c20f7c9452f024a6e17bf348b6b398 upstream.

In .dtr_rts we do:
  uart_set_mctrl(uport, TIOCM_DTR | TIOCM_RTS)
and call uart_update_termios. It does:
  uart_set_mctrl(port, TIOCM_DTR | TIOCM_RTS)
once again. As the only callsite of uart_update_termios is .dtr_rts,
remove the uart_set_mctrl from uart_update_termios to not set it twice.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/serial_core.c