Skip to contentSkip to conversation

Input: iforce - fix control-message timeout

PATCH Applied Johan Hovold 2 participants 2 messages Oct 25, 2021 – Nov 10, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: iforce - fix control-message timeout

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

Fixes 487358627825 ("Input: iforce - use DMA-safe buffer when getting IDs from USB")
---
 drivers/input/joystick/iforce/iforce-usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/joystick/iforce/iforce-usb.c +1 -1
index 6c554c11a7ac..ea58805c480f 100644
@@ -92,7 +92,7 @@ static int iforce_usb_get_id(struct iforce *iforce, u8 id,
 				 id,
 				 USB_TYPE_VENDOR | USB_DIR_IN |
 					USB_RECIP_INTERFACE,
-				 0, 0, buf, IFORCE_MAX_LENGTH, HZ);
+				 0, 0, buf, IFORCE_MAX_LENGTH, 1000);
 	if (status < 0) {
 		dev_err(&iforce_usb->intf->dev,
 			"usb_submit_urb failed: %d\n", status);
Signature · 1 line
2.32.0
maintainer Applied
#1 lore raw
Quoted 6 lines · Johan Hovold

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

Fixes 487358627825 ("Input: iforce - use DMA-safe buffer when getting IDs from USB")

Applied, thank you.

Signature · 1 line
Dmitry