[PATCH v2 1/2] usb: dwc3: gadget: Allow runtime suspend if UDC unbinded

2020-12-29 Thread Wesley Cheng
The DWC3 runtime suspend routine checks for the USB connected parameter to determine if the controller can enter into a low power state. The connected state is only set to false after receiving a disconnect event. However, in the case of a device initiated disconnect (i.e. UDC unbind), the

[PATCH v2 1/2] usb: dwc3: gadget: Allow runtime suspend if UDC unbinded

2020-11-05 Thread Wesley Cheng
The DWC3 runtime suspend routine checks for the USB connected parameter to determine if the controller can enter into a low power state. The connected state is only set to false after receiving a disconnect event. However, in the case of a device initiated disconnect (i.e. UDC unbind), the