usb: dwc2: gadget: add reset flag in init function
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 30 Jan 2015 08:09:32 +0000 (09:09 +0100)
committerFelipe Balbi <balbi@ti.com>
Fri, 30 Jan 2015 16:32:41 +0000 (10:32 -0600)
commit643cc4dee1ee804b46f8d288babca046cca7e099
tree7e421c8125090e712400f06887a613ad68cf27a2
parent7d24c1b5a77c71d885fca047d1f25721f6b366e7
usb: dwc2: gadget: add reset flag in init function

Add a flag to request physical reset of the controller when
s3c_hsotg_core_init_disconnected is called.
During the usb reset, controller must not be fully reconfigured and
resetted. Else this leads to shorter chirp-k duration during
enumeration.

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: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c
drivers/usb/dwc2/hcd.c