Commit ab85bbe6 authored by Johan Hovold's avatar Johan Hovold Committed by Ben Hutchings

USB: iuu_phoenix: fix bulk-message timeout

commit 6c13ff68 upstream.

The bulk-message timeout is specified in milliseconds and should not
depend on HZ.
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 56eb0cfb
...@@ -327,7 +327,7 @@ static int bulk_immediate(struct usb_serial_port *port, u8 *buf, u8 count) ...@@ -327,7 +327,7 @@ static int bulk_immediate(struct usb_serial_port *port, u8 *buf, u8 count)
usb_bulk_msg(serial->dev, usb_bulk_msg(serial->dev,
usb_sndbulkpipe(serial->dev, usb_sndbulkpipe(serial->dev,
port->bulk_out_endpointAddress), buf, port->bulk_out_endpointAddress), buf,
count, &actual, HZ * 1); count, &actual, 1000);
if (status != IUU_OPERATION_OK) if (status != IUU_OPERATION_OK)
dbg("%s - error = %2x", __func__, status); dbg("%s - error = %2x", __func__, status);
...@@ -350,7 +350,7 @@ static int read_immediate(struct usb_serial_port *port, u8 *buf, u8 count) ...@@ -350,7 +350,7 @@ static int read_immediate(struct usb_serial_port *port, u8 *buf, u8 count)
usb_bulk_msg(serial->dev, usb_bulk_msg(serial->dev,
usb_rcvbulkpipe(serial->dev, usb_rcvbulkpipe(serial->dev,
port->bulk_in_endpointAddress), buf, port->bulk_in_endpointAddress), buf,
count, &actual, HZ * 1); count, &actual, 1000);
if (status != IUU_OPERATION_OK) if (status != IUU_OPERATION_OK)
dbg("%s - error = %2x", __func__, status); dbg("%s - error = %2x", __func__, status);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment