usb: dwc3: ep0: push ep0state into xfernotready processing
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 2 Nov 2011 12:30:44 +0000 (13:30 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:48:30 +0000 (11:48 +0200)
commitf0f2b2a2db85f99637376caf25e46623af56acad
tree5c58aee619f07127a564c1216afea5261793e43d
parent8becf2704415d2bf471a0a73ae84c3cc24da8a90
usb: dwc3: ep0: push ep0state into xfernotready processing

We wait for the XferNotReady before we start the transfer and by then we
know ep0 state in which we supposed to be.
This is some cleanup work for the following patch in which we require to
know the ep0 state before the transfer completes.
While here, also change the argument to dwc3_ep0_do_control_status() so
we don't require the complete event structure but only the required
piece of information.

Inspired-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c