USB: iuu_phoenix: fix bulk-message timeout
The bulk-message timeout is specified in milliseconds and should not depend on HZ. Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6343719117
commit
6c13ff68a7
|
@ -287,7 +287,7 @@ static int bulk_immediate(struct usb_serial_port *port, u8 *buf, u8 count)
|
|||
usb_bulk_msg(serial->dev,
|
||||
usb_sndbulkpipe(serial->dev,
|
||||
port->bulk_out_endpointAddress), buf,
|
||||
count, &actual, HZ * 1);
|
||||
count, &actual, 1000);
|
||||
|
||||
if (status != IUU_OPERATION_OK)
|
||||
dev_dbg(&port->dev, "%s - error = %2x\n", __func__, status);
|
||||
|
@ -307,7 +307,7 @@ static int read_immediate(struct usb_serial_port *port, u8 *buf, u8 count)
|
|||
usb_bulk_msg(serial->dev,
|
||||
usb_rcvbulkpipe(serial->dev,
|
||||
port->bulk_in_endpointAddress), buf,
|
||||
count, &actual, HZ * 1);
|
||||
count, &actual, 1000);
|
||||
|
||||
if (status != IUU_OPERATION_OK)
|
||||
dev_dbg(&port->dev, "%s - error = %2x\n", __func__, status);
|
||||
|
|
Loading…
Reference in New Issue