Skip to content

Commit befc28a

Browse files
committed
USB: serial: cp210x: clean up control-request timeout
For consistency use the USB_CTRL_GET_TIMEOUT define for the read-register request timeout (same value as USB_CTRL_SET_TIMEOUT). Reviewed-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Johan Hovold <[email protected]>
1 parent ba4bbda commit befc28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/serial/cp210x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ static int cp210x_read_reg_block(struct usb_serial_port *port, u8 req,
638638
result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
639639
req, REQTYPE_INTERFACE_TO_HOST, 0,
640640
port_priv->bInterfaceNumber, dmabuf, bufsize,
641-
USB_CTRL_SET_TIMEOUT);
641+
USB_CTRL_GET_TIMEOUT);
642642
if (result == bufsize) {
643643
memcpy(buf, dmabuf, bufsize);
644644
result = 0;

0 commit comments

Comments
 (0)