]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: sierra: do not resume I/O on closing ports
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:09 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:05 +0000 (15:04 -0700)
commitc2e45d704723723e5691c7b4bcd0ff4aeb813522
tree8b6a04df0e6cb961036fae3ddfcf07d7696e8f52
parent0287d5c5cda82ebe87e79e5a298f40f0ca05e5ef
USB: sierra: do not resume I/O on closing ports

Use tty-port initialised flag rather than private flag to determine when
port is closing down.

Since the tty-port flag is set prior to dropping DTR/RTS (when HUPCL is
set) this avoid submitting the read urbs when resuming the interface in
dtr_rts() only to immediately kill them again in shutdown().

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/sierra.c