aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.h
diff options
context:
space:
mode:
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>2012-04-27 13:35:15 +0300
committerFelipe Balbi <balbi@ti.com>2014-03-05 09:44:51 -0600
commit911f1f88cadf4b64bad5aa4c257d72494a62f928 (patch)
treed467c24f4963c55632c759ebf3a8952e891e4472 /drivers/usb/dwc3/gadget.h
parentusb: dwc3: add 'saved_state' field to dwc3_ep structure (diff)
downloadlinux-dev-911f1f88cadf4b64bad5aa4c257d72494a62f928.tar.xz
linux-dev-911f1f88cadf4b64bad5aa4c257d72494a62f928.zip
usb: dwc3: gadget: implement dwc3_gadget_get_link_state
This function will be used during hibernation to get the current link state. It will be needed at least for Hibernation support. Signed-off-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.h')
-rw-r--r--drivers/usb/dwc3/gadget.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h
index febe1aa7b714..d10124477872 100644
--- a/drivers/usb/dwc3/gadget.h
+++ b/drivers/usb/dwc3/gadget.h
@@ -86,6 +86,7 @@ void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,
int status);
int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode);
+int dwc3_gadget_get_link_state(struct dwc3 *dwc);
int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
void dwc3_ep0_interrupt(struct dwc3 *dwc,