mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
Input: iforce - fix control-message timeout
commit 744d0090a5f6dfa4c81b53402ccdf08313100429 upstream.
USB control-message timeouts are specified in milliseconds and should
specifically not vary with CONFIG_HZ.
Fixes: 4873586278 ("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]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
db39f49ee7
commit
ce4bec0a54
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue