Commit 744d0090 authored by Johan Hovold's avatar Johan Hovold Committed by Dmitry Torokhov

Input: iforce - fix control-message timeout

USB control-message timeouts are specified in milliseconds and should
specifically not vary with CONFIG_HZ.

Fixes: 48735862 ("Input: iforce - use DMA-safe buffer when getting IDs from USB")
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Cc: stable@vger.kernel.org      # 5.3
Link: https://lore.kernel.org/r/20211025115501.5190-1-johan@kernel.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 91e2e766
...@@ -92,7 +92,7 @@ static int iforce_usb_get_id(struct iforce *iforce, u8 id, ...@@ -92,7 +92,7 @@ static int iforce_usb_get_id(struct iforce *iforce, u8 id,
id, id,
USB_TYPE_VENDOR | USB_DIR_IN | USB_TYPE_VENDOR | USB_DIR_IN |
USB_RECIP_INTERFACE, USB_RECIP_INTERFACE,
0, 0, buf, IFORCE_MAX_LENGTH, HZ); 0, 0, buf, IFORCE_MAX_LENGTH, 1000);
if (status < 0) { if (status < 0) {
dev_err(&iforce_usb->intf->dev, dev_err(&iforce_usb->intf->dev,
"usb_submit_urb failed: %d\n", status); "usb_submit_urb failed: %d\n", 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