diff options
| author | Peter Chen <peter.chen@freescale.com> | 2015-03-05 21:36:03 -0500 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2015-03-19 12:26:03 -0400 |
| commit | 628ef0d273a69d889669a459fb4675c678ae0418 (patch) | |
| tree | 959599b38d2934aec388b53c086a3ab4f38baeba /include/linux/usb | |
| parent | dfea9c94837d27e38c8cc85a3c1c7c268973c3c2 (diff) | |
usb: udc: add usb_udc_vbus_handler
This commit updates udc core vbus status, and try to connect
or disconnect gadget.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/gadget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 242c694a5b85..4f3dfb7d0654 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h | |||
| @@ -1032,6 +1032,10 @@ extern void usb_gadget_udc_reset(struct usb_gadget *gadget, | |||
| 1032 | extern void usb_gadget_giveback_request(struct usb_ep *ep, | 1032 | extern void usb_gadget_giveback_request(struct usb_ep *ep, |
| 1033 | struct usb_request *req); | 1033 | struct usb_request *req); |
| 1034 | 1034 | ||
| 1035 | /*-------------------------------------------------------------------------*/ | ||
| 1036 | |||
| 1037 | /* utility to update vbus status for udc core, it may be scheduled */ | ||
| 1038 | extern void usb_udc_vbus_handler(struct usb_gadget *gadget, bool status); | ||
| 1035 | 1039 | ||
| 1036 | /*-------------------------------------------------------------------------*/ | 1040 | /*-------------------------------------------------------------------------*/ |
| 1037 | 1041 | ||
