usb: dwc3: ep0: handle unexpected XferNotReady events
authorFelipe Balbi <balbi@ti.com>
Tue, 18 Oct 2011 15:00:26 +0000 (18:00 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:48:16 +0000 (11:48 +0200)
commit9cc9bcd5b3e8efa45accf2ccb59f13c8de85a0ce
treef3bf6258f1d7a665fc046836d670a6dda8b11815
parent0b9fe32deece53c9bc6d1e6d17a85ef1eb2e294b
usb: dwc3: ep0: handle unexpected XferNotReady events

Sometimes the host might be trying to initiate Data or
Status phase for an older Control transfer. In such
situations we must STALL that transfer and restart
the state machine rather than letting such situation
go through the wire.

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