mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
staging: r8712u: fix control-message timeout
commitce4940525fupstream. USB control-message timeouts are specified in milliseconds and should specifically not vary with CONFIG_HZ. Fixes:2865d42c78("staging: r8712u: Add the new driver to the mainline kernel") Cc: stable@vger.kernel.org # 2.6.37 Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20211025120910.6339-3-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
844b02496e
commit
9963ba5b9d
@@ -494,7 +494,7 @@ int r8712_usbctrl_vendorreq(struct intf_priv *pintfpriv, u8 request, u16 value,
|
|||||||
memcpy(pIo_buf, pdata, len);
|
memcpy(pIo_buf, pdata, len);
|
||||||
}
|
}
|
||||||
status = usb_control_msg(udev, pipe, request, reqtype, value, index,
|
status = usb_control_msg(udev, pipe, request, reqtype, value, index,
|
||||||
pIo_buf, len, HZ / 2);
|
pIo_buf, len, 500);
|
||||||
if (status > 0) { /* Success this control transfer. */
|
if (status > 0) { /* Success this control transfer. */
|
||||||
if (requesttype == 0x01) {
|
if (requesttype == 0x01) {
|
||||||
/* For Control read transfer, we have to copy the read
|
/* For Control read transfer, we have to copy the read
|
||||||
|
|||||||
Reference in New Issue
Block a user