usb: dwc3: ep0: tidy up Pending Request handling
commit119fd91db5443904cddd1a6edbfe75f382ff25f5
authorFelipe Balbi <balbi@ti.com>
Thu, 29 Dec 2011 04:32:29 +0000 (29 06:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:22:04 +0000 (3 09:22 -0800)
tree61e292466e72dd0be411b5095dde75f013c44186
parentb270ee68838ee24d96849b87821f78088d28e1ba
usb: dwc3: ep0: tidy up Pending Request handling

commit 68d8a781575d7be490f97eb2c403fb13b083da6a upstream.

The way our code was written, we should never have
a DWC3_EP_PENDING_REQUEST flag set out of a Data Phase
and the code in __dwc3_gadget_ep0_queue() did not
reflect that situation properly.

Tidy up that case to avoid any possible mistakes
when starting requests for IRQs which are long
gone.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/ep0.c