Name
usb_gadget_disconnect —
software-controlled disconnect from USB host
Arguments
gadget
the peripheral being disconnected
Description
Disables the D+ (or potentially D-) pullup, which the host may see
as a disconnect (when a VBUS session is active). Not all systems
support software pullup controls.
Returns zero on success, else negative errno.