• Mathias Kresin's avatar
    usb: dwc2: use a longer core rest timeout in dwc2_core_reset() · 6689f0f4
    Mathias Kresin authored
    Testing on different generations of Lantiq MIPS SoC based boards, showed
    that it takes up to 1500 us until the core reset bit is cleared.
    
    The driver from the vendor SDK (ifxhcd) uses a 1 second timeout. Use the
    same timeout to fix wrong hang detections and make the driver work for
    Lantiq MIPS SoCs.
    
    At least till kernel 4.14 the hanging reset only caused a warning but
    the driver was probed successful. With kernel 4.19 errors out with
    EBUSY.
    
    Cc: linux-stable <stable@vger.kernel.org> # 4.19+
    Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
    Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
    6689f0f4
core.c 34.1 KB