• Inaky Perez-Gonzalez's avatar
    wimax/i2400m: handle USB stalls · faf57162
    Inaky Perez-Gonzalez authored
    When the device stalls, clear it and retry; if it keeps failing too
    often, reset the device.
    
    This specially happens when running on virtual machines; the real
    hardware doesn't seem to trip on stalls too much, except for a few
    reports in the mailing list (still to be confirmed this is the cause,
    although it seems likely.
    
    NOTE: it is not clear if the URB has to be resubmitted fully or start
    only at the offset of the first transaction sent. Can't find
    documentation to clarify one end or the other.
    
    Tests that just resubmit the whole URB seemed to work in my
    environment.
    Signed-off-by: default avatarInaky Perez-Gonzalez <inaky@linux.intel.com>
    faf57162
usb-tx.c 8.74 KB