]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9465f6d2ca985ed151cc5023247dbf82831255de
tree5c58aee619f07127a564c1216afea5261793e43d
parentd1fbd994fe3fd36c58873c00592e59026cf870fa
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