Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd246f2c authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: option: fix line-control pipe direction



The option line-control request has been using the wrong pipe direction,
while relying on USB core to fix it up.

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent acf47d4f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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_rcvctrlpipe(serial->dev, 0),
	res = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
				0x22, 0x21, val, priv->bInterfaceNumber, NULL,
				0, USB_CTRL_SET_TIMEOUT);