aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-09-11 21:32:41 -0400
committerFelipe Balbi <balbi@ti.com>2014-09-12 10:12:51 -0400
commit974a70bdecea5296db1b643e4046ef208e99c592 (patch)
tree040d2ee0578c85b155fe91a3f5bfe13905e2ed32 /include/linux
parent1f7c51660034091dc134fcc534b7f1fa86a6e823 (diff)
usb: gadget: udc-core: add utility for bus reset
The udc driver can notify the udc core that bus reset occurs by calling this utility, the core will notify gadget driver this information and update gadget state accordingly. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb/gadget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
index 598a6e9b2850..d18811433324 100644
--- a/include/linux/usb/gadget.h
+++ b/include/linux/usb/gadget.h
@@ -1017,6 +1017,12 @@ extern void usb_gadget_set_state(struct usb_gadget *gadget,
1017 1017
1018/*-------------------------------------------------------------------------*/ 1018/*-------------------------------------------------------------------------*/
1019 1019
1020/* utility to tell udc core that the bus reset occurs */
1021extern void usb_gadget_udc_reset(struct usb_gadget *gadget,
1022 struct usb_gadget_driver *driver);
1023
1024/*-------------------------------------------------------------------------*/
1025
1020/* utility wrapping a simple endpoint selection policy */ 1026/* utility wrapping a simple endpoint selection policy */
1021 1027
1022extern struct usb_ep *usb_ep_autoconfig(struct usb_gadget *, 1028extern struct usb_ep *usb_ep_autoconfig(struct usb_gadget *,