[PATCH] usb: dwc3: gadget: Restart DWC3 gadget when enabling pullup

2020-12-29 Thread Wesley Cheng
usb_gadget_deactivate/usb_gadget_activate does not execute the UDC start operation, which may leave EP0 disabled and event IRQs disabled when re-activating the function. Move the enabling/disabling of USB EP0 and device event IRQs to be performed in the pullup routine. Fixes: ae7e86108b12 ("usb:

Re: [PATCH] usb: dwc3: gadget: Restart DWC3 gadget when enabling pullup

2020-11-30 Thread Michael Tretter
On Fri, 20 Nov 2020 16:08:04 +0100, Michael Tretter wrote: > On Thu, 19 Nov 2020 16:13:21 -0800, Wesley Cheng wrote: > > usb_gadget_deactivate/usb_gadget_activate does not execute the UDC start > > operation, which may leave EP0 disabled and event IRQs disabled when > > re-activating the function.

Re: [PATCH] usb: dwc3: gadget: Restart DWC3 gadget when enabling pullup

2020-11-20 Thread Michael Tretter
On Thu, 19 Nov 2020 16:13:21 -0800, Wesley Cheng wrote: > usb_gadget_deactivate/usb_gadget_activate does not execute the UDC start > operation, which may leave EP0 disabled and event IRQs disabled when > re-activating the function. Move the enabling/disabling of USB EP0 and > device event IRQs to

[PATCH] usb: dwc3: gadget: Restart DWC3 gadget when enabling pullup

2020-11-19 Thread Wesley Cheng
usb_gadget_deactivate/usb_gadget_activate does not execute the UDC start operation, which may leave EP0 disabled and event IRQs disabled when re-activating the function. Move the enabling/disabling of USB EP0 and device event IRQs to be performed in the pullup routine. Fixes: ae7e86108b12 ("usb: