提交 541fd20c 编写于 作者: J Johan Hovold 提交者: Kalle Valo

rsi: fix control-message timeout

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: dad0d04f ("rsi: Add RS9113 wireless driver")
Cc: stable@vger.kernel.org      # 3.15
Signed-off-by: NJohan Hovold <johan@kernel.org>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211025120522.6045-5-johan@kernel.org
上级 2e9be536
...@@ -58,7 +58,7 @@ static int rsi_usb_card_write(struct rsi_hw *adapter, ...@@ -58,7 +58,7 @@ static int rsi_usb_card_write(struct rsi_hw *adapter,
(void *)seg, (void *)seg,
(int)len, (int)len,
&transfer, &transfer,
HZ * 5); USB_CTRL_SET_TIMEOUT);
if (status < 0) { if (status < 0) {
rsi_dbg(ERR_ZONE, rsi_dbg(ERR_ZONE,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册