summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/core.h
diff options
context:
space:
mode:
authorJohn Youn <John.Youn@synopsys.com>2015-12-17 11:17:12 -0800
committerFelipe Balbi <balbi@ti.com>2015-12-22 12:00:34 -0600
commit09c96980dc723462ed2eeacc945fed5bcb278f85 (patch)
tree8b19af92cd27f36b967683b9a5f29753646f29d7 /drivers/usb/dwc2/core.h
parent263b7fb557f797d9d4d1dcf93fb6bb2efc3f1d46 (diff)
downloadop-kernel-dev-09c96980dc723462ed2eeacc945fed5bcb278f85.zip
op-kernel-dev-09c96980dc723462ed2eeacc945fed5bcb278f85.tar.gz
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>
Diffstat (limited to 'drivers/usb/dwc2/core.h')
-rw-r--r--drivers/usb/dwc2/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h
index 263a9da..efdbe455 100644
--- a/drivers/usb/dwc2/core.h
+++ b/drivers/usb/dwc2/core.h
@@ -886,6 +886,8 @@ extern void dwc2_core_host_init(struct dwc2_hsotg *hsotg);
extern int dwc2_enter_hibernation(struct dwc2_hsotg *hsotg);
extern int dwc2_exit_hibernation(struct dwc2_hsotg *hsotg, bool restore);
+void dwc2_force_dr_mode(struct dwc2_hsotg *hsotg);
+
/*
* Host core Functions.
* The following functions support managing the DWC_otg controller in host
OpenPOWER on IntegriCloud