lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 006/355] Input: iforce - fix control-message timeout
    Date
    From: Johan Hovold <johan@kernel.org>

    commit 744d0090a5f6dfa4c81b53402ccdf08313100429 upstream.

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

    Fixes: 487358627825 ("Input: iforce - use DMA-safe buffer when getting IDs from USB")
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Cc: stable@vger.kernel.org # 5.3
    Link: https://lore.kernel.org/r/20211025115501.5190-1-johan@kernel.org
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/input/joystick/iforce/iforce-usb.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/input/joystick/iforce/iforce-usb.c
    +++ b/drivers/input/joystick/iforce/iforce-usb.c
    @@ -92,7 +92,7 @@ static int iforce_usb_get_id(struct ifor
    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);

    \
     
     \ /
      Last update: 2021-11-15 18:12    [W:4.100 / U:0.316 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site