usb: dwc2/gadget: avoid disabling ep0
authorRobert Baldyga <r.baldyga@samsung.com>
Tue, 9 Sep 2014 08:44:13 +0000 (10:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2014 17:17:48 +0000 (10:17 -0700)
commit604eac3c0c69e98f2fd0133305f9e777418f1d3b
tree87f832bfd7f2da3981fd7be4b67cd7418177d27b
parenteb3c56c5ccdd252940cb0ec0541fcdc94894bd8d
usb: dwc2/gadget: avoid disabling ep0

Endpoint 0 should not be disabled, so we start loop counter from number 1.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Cc: stable <stable@vger.kernel.org> # 3.16
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/gadget.c