1USB_GADGET_VBUS_CONN(9) Kernel Mode Gadget API USB_GADGET_VBUS_CONN(9)
2
3
4
6 usb_gadget_vbus_connect - Notify controller that VBUS is powered
7
9 int usb_gadget_vbus_connect(struct usb_gadget * gadget);
10
12 gadget
13 The device which now has VBUS power.
14
16 can sleep
17
19 This call is used by a driver for an external transceiver (or GPIO)
20 that detects a VBUS power session starting. Common responses include
21 resuming the controller, activating the D+ (or D-) pullup to let the
22 host detect that a USB device is attached, and starting to draw power
23 (8mA or possibly more, especially after SET_CONFIGURATION).
24
25 Returns zero on success, else negative errno.
26
28 David Brownell <dbrownell@users.sourceforge.net>
29 Author.
30
32Kernel Hackers Manual 2.6. November 2011 USB_GADGET_VBUS_CONN(9)