usb: dwc2: Add functions to set and clear force mode
authorJohn Youn <John.Youn@synopsys.com>
Thu, 17 Dec 2015 19:17:12 +0000 (11:17 -0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 22 Dec 2015 18:00:34 +0000 (12:00 -0600)
commit09c96980dc723462ed2eeacc945fed5bcb278f85
tree8b19af92cd27f36b967683b9a5f29753646f29d7
parent263b7fb557f797d9d4d1dcf93fb6bb2efc3f1d46
usb: dwc2: Add functions to set and clear force mode

Added functions to set force mode for host and device. These functions
will check the current mode and only force if needed thus avoiding
unnecessary force mode delays. However clearing the mode is currently
done unconditionally and with the delay in place. This is needed during
the connector ID status change interrupt in order to ensure that the
mode has changed properly. This preserves the old behavior only for this
case. The warning comment about this is moved into the clear mode
condition.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.c
drivers/usb/dwc2/core.h
This page took 0.025143 seconds and 5 git commands to generate.