usb: gadget: configfs: handle gadget reset request for android
authorAmit Pundir <amit.pundir@linaro.org>
Tue, 6 Oct 2015 15:23:27 +0000 (20:53 +0530)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:15 +0000 (13:52 -0800)
commitfcabd00b4177edfcfd17606b268e10602267ba86
treeb54a5472915356f07dbbeec6f2dafe8928662f41
parent06047350fc1c0dafb9e39af6b2428dad9a445005
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>
drivers/usb/gadget/configfs.c