Message ID | Pine.LNX.4.44L0.1904151313300.1575-100000@iolanthe.rowland.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | 381419fa720060ba48b7bbc483be787d5b1dca6f |
Headers | show |
Series | USB: core: Don't unbind interfaces following device reset failure | expand |
Index: usb-4.x/drivers/usb/core/hub.c =================================================================== --- usb-4.x.orig/drivers/usb/core/hub.c +++ usb-4.x/drivers/usb/core/hub.c @@ -5902,7 +5902,10 @@ int usb_reset_device(struct usb_device * cintf->needs_binding = 1; } } - usb_unbind_and_rebind_marked_interfaces(udev); + + /* If the reset failed, hub_wq will unbind drivers later */ + if (ret == 0) + usb_unbind_and_rebind_marked_interfaces(udev); } usb_autosuspend_device(udev);