projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acf47d4
)
USB: option: fix line-control pipe direction
author
Johan Hovold
<jhovold@gmail.com>
Mon, 26 May 2014 17:23:11 +0000
(19:23 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:05 +0000
(15:04 -0700)
The option line-control request has been using the wrong pipe direction,
while relying on USB core to fix it up.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/option.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/option.c
b/drivers/usb/serial/option.c
index 802c0693e5c9688879817d731bf1fcab1e9a013a..2003a66c48079aa2a3edc0266bd186b4f02feb36 100644
(file)
--- a/
drivers/usb/serial/option.c
+++ b/
drivers/usb/serial/option.c
@@
-1936,7
+1936,7
@@
static int option_send_setup(struct usb_serial_port *port)
if (res)
return res;
- res = usb_control_msg(serial->dev, usb_
rcv
ctrlpipe(serial->dev, 0),
+ res = usb_control_msg(serial->dev, usb_
snd
ctrlpipe(serial->dev, 0),
0x22, 0x21, val, priv->bInterfaceNumber, NULL,
0, USB_CTRL_SET_TIMEOUT);