Skip to content

Commit 744d009

Browse files
jhovolddtor
authored andcommitted
Input: iforce - fix control-message timeout
USB control-message timeouts are specified in milliseconds and should specifically not vary with CONFIG_HZ. Fixes: 4873586 ("Input: iforce - use DMA-safe buffer when getting IDs from USB") Signed-off-by: Johan Hovold <[email protected]> Cc: [email protected] # 5.3 Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 91e2e76 commit 744d009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/joystick/iforce/iforce-usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static int iforce_usb_get_id(struct iforce *iforce, u8 id,
9292
id,
9393
USB_TYPE_VENDOR | USB_DIR_IN |
9494
USB_RECIP_INTERFACE,
95-
0, 0, buf, IFORCE_MAX_LENGTH, HZ);
95+
0, 0, buf, IFORCE_MAX_LENGTH, 1000);
9696
if (status < 0) {
9797
dev_err(&iforce_usb->intf->dev,
9898
"usb_submit_urb failed: %d\n", status);

0 commit comments

Comments
 (0)