summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/u_ether.c
diff options
context:
space:
mode:
authorJohn Youn <johnyoun@synopsys.com>2016-09-07 19:39:43 -0700
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-09-08 14:02:54 +0300
commit2938fc63e0c26bf694436ac81bc776c8b7eced0c (patch)
tree46b4d9f5763f7cd6e37aade7db3fd948d78fbe77 /drivers/usb/gadget/function/u_ether.c
parentfef6bc37dbafe0d6d71c808c8867a8c5ab4b9816 (diff)
usb: dwc2: Properly account for the force mode delays
When a force mode bit is set and the IDDIG debounce filter is enabled, there is a delay for the forced mode to take effect. This delay is due to the IDDIG debounce filter and is variable depending on the platform's PHY clock speed. To account for this delay we can poll for the expected mode. On a clear force mode, since we don't know what mode to poll for, delay for a fixed 100 ms. This is the maximum delay based on the slowest PHY clock speed. 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>
Diffstat (limited to 'drivers/usb/gadget/function/u_ether.c')
0 files changed, 0 insertions, 0 deletions