Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42f3ea19 authored by Amit Pundir's avatar Amit Pundir Committed by Dmitry Shmidt
Browse files

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: default avatarAmit Pundir <amit.pundir@linaro.org>
parent fa26a69b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1602,6 +1602,7 @@ static const struct usb_gadget_driver configfs_driver_template = {
	.unbind         = configfs_composite_unbind,
#ifdef CONFIG_USB_CONFIGFS_UEVENT
	.setup          = android_setup,
	.reset          = android_disconnect,
	.disconnect     = android_disconnect,
#else
	.setup          = composite_setup,