mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 07:33:56 +00:00
USB: sierra: fix line-control pipe direction
The sierra 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>
This commit is contained in:
parent
f4a2d499e7
commit
d304889888
@ -365,7 +365,7 @@ static int sierra_send_setup(struct usb_serial_port *port)
|
||||
if (retval < 0)
|
||||
return retval;
|
||||
|
||||
retval = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
|
||||
retval = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
|
||||
0x22, 0x21, val, interface, NULL, 0, USB_CTRL_SET_TIMEOUT);
|
||||
usb_autopm_put_interface(serial->interface);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user