Skip to content

Commit

Permalink
rsi: fix control-message timeout
Browse files Browse the repository at this point in the history
commit 541fd20 upstream.

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

Use the common control-message timeout define for the five-second
timeout.

Fixes: dad0d04 ("rsi: Add RS9113 wireless driver")
Cc: stable@vger.kernel.org      # 3.15
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211025120522.6045-5-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
jhovold authored and gregkh committed Nov 12, 2021
1 parent eda57a3 commit 1379769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rsi/rsi_91x_usb.c
Expand Up @@ -61,7 +61,7 @@ static int rsi_usb_card_write(struct rsi_hw *adapter,
(void *)seg,
(int)len,
&transfer,
HZ * 5);
USB_CTRL_SET_TIMEOUT);

if (status < 0) {
rsi_dbg(ERR_ZONE,
Expand Down

0 comments on commit 1379769

Please sign in to comment.