usb: dwc2: Add delay to core soft reset
commitfef6bc37dbafe0d6d71c808c8867a8c5ab4b9816
authorJohn Youn <johnyoun@synopsys.com>
Thu, 8 Sep 2016 02:39:40 +0000 (7 19:39 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 8 Sep 2016 11:02:52 +0000 (8 14:02 +0300)
tree49ce6e8972a41b8ed336dffc1c8dce912cc79b5e
parentd0f0ac56b34b28e80223d7086b4decdf027c27ed
usb: dwc2: Add delay to core soft reset

Add a delay to the core soft reset function to account for the IDDIG
debounce filter.

If the current mode is host, either due to the force mode bit being
set (which persists after core reset) or the connector id pin, a core
soft reset will temporarily reset the mode to device and a delay from
the IDDIG debounce filter will occur before going back to host mode.

Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core.c
drivers/usb/dwc2/core.h
drivers/usb/dwc2/hw.h