linux/drivers/usb/dwc3
Felipe Balbi f59dcab176 usb: dwc3: core: improve reset sequence
According to Synopsys Databook, we shouldn't be
relying on GCTL.CORESOFTRESET bit as that's only for
debugging purposes. Instead, let's use DCTL.CSFTRST
if we're OTG or PERIPHERAL mode.

Host side block will be reset by XHCI driver if
necessary. Note that this reduces amount of time
spent on dwc3_probe() by a long margin.

We're still gonna wait for reset to finish for a
long time (default to 1ms max), but tests show that
the reset polling loop executed at most 19 times
(modprobe dwc3 && modprobe -r dwc3 executed 1000
times in a row).

Suggested-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2016-03-29 09:30:31 +03:00
..
core.c usb: dwc3: core: improve reset sequence 2016-03-29 09:30:31 +03:00
core.h usb: dwc3: Update register fields for SuperSpeedPlus 2016-03-04 15:14:26 +02:00
debug.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
debug.h usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
debugfs.c usb: dwc3: switch to GPL v2 only 2013-07-29 13:56:44 +03:00
dwc3-exynos.c usb: dwc3: exynos: switch dev_dbg() to dev_info() 2015-07-29 09:59:17 -05:00
dwc3-keystone.c usb: dwc3: keystone: convert dev_dbg() to dev_err() 2015-07-29 09:59:17 -05:00
dwc3-of-simple.c usb: dwc3: Remove impossible check for of_clk_get_parent_count() < 0 2016-02-26 16:01:32 -08:00
dwc3-omap.c usb: dwc3: omap: enable irqs lately 2015-09-14 09:51:58 -05:00
dwc3-pci.c usb: dwc3: pci: add support for Intel Broxton SOC 2015-11-16 10:12:29 -06:00
dwc3-st.c usb: common: of_usb_get_dr_mode to usb_get_dr_mode 2015-09-27 10:54:31 -05:00
ep0.c usb: dwc3: Update speed checks for SuperSpeedPlus 2016-03-04 15:14:27 +02:00
gadget.c usb: dwc3: Validate the maximum_speed parameter 2016-03-04 15:14:38 +02:00
gadget.h usb: dwc3: gadget: fix set_halt() bug with pending transfers 2014-10-20 15:58:48 -05:00
host.c usb: dwc3: make LPM configurable in DT 2015-03-10 15:33:33 -05:00
io.h usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
Kconfig usb: dwc3: remove dwc3-qcom in favor of dwc3-of-simple 2015-12-15 09:12:41 -06:00
Makefile usb: dwc3: remove dwc3-qcom in favor of dwc3-of-simple 2015-12-15 09:12:41 -06:00
platform_data.h usb: dwc3: Add dis_enblslpm_quirk 2015-10-09 16:06:59 -05:00
trace.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
trace.h usb: dwc3: trace: show request flags 2015-12-15 09:12:41 -06:00
ulpi.c usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00