mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
ANDROID: usb: gadget: configfs: handle gadget reset request for android
There is this new mandatory UDC->reset API in v3.18+ kernels,
commit ef979a26 "usb: gadget: add reset API at usb_gadget_driver".
Let android_disconnect handle that for Android, similar to
how composite_disconnect is handling the generic ConfigFS
gadget reset request.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
This commit is contained in:
parent
bba0df3964
commit
9214c899f7
|
|
@ -1542,6 +1542,7 @@ static const struct usb_gadget_driver configfs_driver_template = {
|
||||||
.unbind = configfs_composite_unbind,
|
.unbind = configfs_composite_unbind,
|
||||||
#ifdef CONFIG_USB_CONFIGFS_UEVENT
|
#ifdef CONFIG_USB_CONFIGFS_UEVENT
|
||||||
.setup = android_setup,
|
.setup = android_setup,
|
||||||
|
.reset = android_disconnect,
|
||||||
.disconnect = android_disconnect,
|
.disconnect = android_disconnect,
|
||||||
#else
|
#else
|
||||||
.setup = composite_setup,
|
.setup = composite_setup,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user