From: Amit Pundir Date: Tue, 6 Oct 2015 15:23:27 +0000 (+0530) Subject: usb: gadget: configfs: handle gadget reset request for android X-Git-Tag: firefly_0821_release~2958^2~352 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fcabd00b4177edfcfd17606b268e10602267ba86;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index 542d60792e2c..ac4c641eb20b 100644 --- a/drivers/usb/gadget/configfs.c +++ b/drivers/usb/gadget/configfs.c @@ -1548,6 +1548,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,