Skip to content

Commit

Permalink
ath10k: fix control-message timeout
Browse files Browse the repository at this point in the history
USB control-message timeouts are specified in milliseconds and should
specifically not vary with CONFIG_HZ.

Fixes: 4db6649 ("ath10k: add initial USB support")
Cc: [email protected]      # 4.14
Cc: Erik Stromdahl <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
jhovold authored and Kalle Valo committed Oct 28, 2021
1 parent c9a4f2d commit 5286132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath10k/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ static int ath10k_usb_submit_ctrl_in(struct ath10k *ar,
req,
USB_DIR_IN | USB_TYPE_VENDOR |
USB_RECIP_DEVICE, value, index, buf,
size, 2 * HZ);
size, 2000);

if (ret < 0) {
ath10k_warn(ar, "Failed to read usb control message: %d\n",
Expand Down

0 comments on commit 5286132

Please sign in to comment.