diff options
author | Johan Hovold <jhovold@gmail.com> | 2014-05-26 13:23:32 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 18:04:08 -0400 |
commit | b0a9aa6da8088b722326a858ab572a13b5b6f9cb (patch) | |
tree | db589f9068c18440b5687e3b9835bc5fa723dc41 /drivers/usb/serial/usb-wwan.h | |
parent | 8bb7ec65d600fd513aa94b50078a6329df612daa (diff) |
USB: usb_wwan: 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>
Diffstat (limited to 'drivers/usb/serial/usb-wwan.h')
-rw-r--r-- | drivers/usb/serial/usb-wwan.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb-wwan.h b/drivers/usb/serial/usb-wwan.h index 8502f9add334..f22dff58b587 100644 --- a/drivers/usb/serial/usb-wwan.h +++ b/drivers/usb/serial/usb-wwan.h | |||
@@ -48,7 +48,6 @@ struct usb_wwan_port_private { | |||
48 | struct urb *out_urbs[N_OUT_URB]; | 48 | struct urb *out_urbs[N_OUT_URB]; |
49 | u8 *out_buffer[N_OUT_URB]; | 49 | u8 *out_buffer[N_OUT_URB]; |
50 | unsigned long out_busy; /* Bit vector of URBs in use */ | 50 | unsigned long out_busy; /* Bit vector of URBs in use */ |
51 | int opened; | ||
52 | struct usb_anchor delayed; | 51 | struct usb_anchor delayed; |
53 | 52 | ||
54 | /* Settings for the port */ | 53 | /* Settings for the port */ |