usb: dwc3: gadget: prevent dwc3_request from being queued twice
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 11 Jan 2019 10:58:52 +0000 (12:58 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 28 Jan 2019 10:53:15 +0000 (12:53 +0200)
commitb2b6d601365a1acb90b87c85197d797447bc9a2c
tree117464870eb93c0e828effb33c1fec511d3ddca7
parenta3af5e3ad3f11a0001317da9e9fb78b371c5f603
usb: dwc3: gadget: prevent dwc3_request from being queued twice

Queueing the same request twice can introduce hard-to-debug
problems. At least one function driver - Android's f_mtp.c - is known
to cause this problem.

While that function is out-of-tree, this is a problem that's easy
enough to avoid.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c