]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: gadget: initialize controller in pullup callback
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 30 Jan 2015 08:09:37 +0000 (09:09 +0100)
committerFelipe Balbi <balbi@ti.com>
Fri, 30 Jan 2015 16:34:19 +0000 (10:34 -0600)
commit4cc789835b2ab34bbc5c4e0294abdbca45a15adf
tree9398de330f62f33a6f1ca7a162e62e4d7e3b12a6
parente7904e86cbd79c5b1c5c24fff13c6949ad69c586
usb: dwc2: gadget: initialize controller in pullup callback

USB reset interrupt is no more used to reset the controller.
Thus, reset the controller in pullup callback as described by
Synopsys programming guide. Otherwise enumeration sometimes
fails when usb configuration is switched without physical
disconnection.

Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c