Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93360
b: refs/heads/master
c: 5f76004
h: refs/heads/master
v: v3
  • Loading branch information
Chris Collins authored and Greg Kroah-Hartman committed Apr 25, 2008
1 parent 2b7325e commit b6ebe5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6a79f1f07fc88a2efd6d0e8f0ccf591cb93cd34
refs/heads/master: 5f760040bcb4cc0498d4c662c4ea305290198ef3
15 changes: 9 additions & 6 deletions trunk/drivers/usb/serial/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
device features.
*/

#define DRIVER_VERSION "v0.7.1"
#define DRIVER_VERSION "v0.7.2"
#define DRIVER_AUTHOR "Matthias Urlichs <smurf@smurf.noris.de>"
#define DRIVER_DESC "USB Driver for GSM modems"

Expand Down Expand Up @@ -824,16 +824,19 @@ static void option_setup_urbs(struct usb_serial *serial)
}
}


/** send RTS/DTR state to the port.
*
* This is exactly the same as SET_CONTROL_LINE_STATE from the PSTN
* CDC.
*/
static int option_send_setup(struct usb_serial_port *port)
{
struct usb_serial *serial = port->serial;
struct option_port_private *portdata;

int ifNum = serial->interface->cur_altsetting->desc.bInterfaceNumber;
dbg("%s", __FUNCTION__);

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

portdata = usb_get_serial_port_data(port);

if (port->tty) {
Expand All @@ -845,7 +848,7 @@ static int option_send_setup(struct usb_serial_port *port)

return usb_control_msg(serial->dev,
usb_rcvctrlpipe(serial->dev, 0),
0x22,0x21,val,0,NULL,0,USB_CTRL_SET_TIMEOUT);
0x22,0x21,val,ifNum,NULL,0,USB_CTRL_SET_TIMEOUT);
}

return 0;
Expand Down

0 comments on commit b6ebe5c

Please sign in to comment.