Skip to content

Commit

Permalink
USB: fix interaction between different interfaces in an "Option" usb …
Browse files Browse the repository at this point in the history
…device

Just the serial port in the first interface should control DTR and RTS
lines. This way, the closing of the rest of the ports does not produce a=
hangup in the communication.

Signed-off-by: Miguel Angel Alvarez <ma.alvarez@ziv.es>
Signed-off-by: Matthias Urlichs <matthias@urlichs.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Miguel Angel Alvarez authored and Greg Kroah-Hartman committed Jan 5, 2007
1 parent 25c77b3 commit 8c15271
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/usb/serial/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,9 @@ static int option_send_setup(struct usb_serial_port *port)

dbg("%s", __FUNCTION__);

if (port->number != 0)
return 0;

portdata = usb_get_serial_port_data(port);

if (port->tty) {
Expand Down

0 comments on commit 8c15271

Please sign in to comment.