usb: dwc3: ep0: tidy up Pending Request handling
authorFelipe Balbi <balbi@ti.com>
Thu, 29 Dec 2011 04:32:29 +0000 (06:32 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 24 Jan 2012 13:41:22 +0000 (15:41 +0200)
commit68d8a781575d7be490f97eb2c403fb13b083da6a
tree3f738a665891e751edeea80ed0af364b7a17fb16
parentdcd6c92267155e70a94b3927bce681ce74b80d1f
usb: dwc3: ep0: tidy up Pending Request handling

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.

Cc: stable@vger.kernel.org
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c