Re: [PATCH] usb: sisusbvga: stop early init on the first failed transfer
From: Greg Kroah-Hartman
Date: Thu Dec 03 2026 - 22:23:08 EST
On Wed, Sep 23, 2026 at 10:07:53PM +0700, Nguyen Ngoc Thang wrote:
> sisusb_probe() initializes the graphics device from within the hub's
> enumeration work, i.e. with the parent hub's device lock held.
> sisusb_do_init_gfxdevice() accumulates errors with "ret |=" and keeps
> going after a failed transfer. If the device does not answer, every
> remaining transfer sits out its full timeout (5s, retried 6 times), so
> probe holds the hub lock for ~30s per access and about 10 minutes in
> total. Anything that needs that lock, such as usbdev_open() and
> usbdev_ioctl() on the root hub, is blocked for the duration and trips the
> hung task detector.
>
> Return on the first error instead. Also fold the three identical BAR
> setup sequences into a helper and the leading magic writes into a table.
> The sequence of accesses is unchanged when the device responds.
When you say "also" that means you need multiple patches.
> Reproduced with a raw-gadget device (0711:0550, six bulk endpoints that
> never complete I/O) on dummy_hcd: opening the root hub blocked for 603s
> before, 29s after.
That's fine, you are giving the system a broken device, you get a broken
system :)
thanks,
greg k-h