提交 d3048898 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

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: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f4a2d499
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册