summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBenoit Goby <benoit@android.com>2012-03-19 18:56:52 -0700
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:51:54 -0800
commitb3479c8467733c27fed142bcd43f50da4357188f (patch)
tree21cdc9c847b0e0eab75215de702583ac92781d77 /include/linux
parent3daf0db436a9d96f5d3ac43f5e6d315178e3184a (diff)
usb: gadget: adb: Only enable the gadget when adbd is ready
When adb is enabled, only connect the gadget when adbd is ready. If adbd dies or is restarted (e.g. "adb root"), the gadget is disconnected when the adb device is close, and it is re-connected once adb re-open the device. - Add callbacks to adb, similar to FunctionFs callbacks, to notify the gadget when the daemon is ready or closed. - Refcount calls to android_enable/android_disable to enable the gadget only once all the function daemons are ready. - Add enable/disble to android_usb_function to notify the function when it is added/removed from the list of enabled functions. Change-Id: Id54ff85aec9cf8715c94b4f9bd6137a79ad58bfc Signed-off-by: Benoit Goby <benoit@android.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions