]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: dwc3: ep0: don't change to configured state too early
authorFelipe Balbi <balbi@ti.com>
Mon, 22 Jul 2013 09:41:47 +0000 (12:41 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 10:57:04 +0000 (13:57 +0300)
commit7c81290e87bf01b507deabf0f478e051367cb416
tree0e378bf02105063f5a9e7622b135f6cc9a1768ff
parent7a42d83536a5ea7ea7b4ad279c34c4c4ce509b5a
usb: dwc3: ep0: don't change to configured state too early

before changing to configured state, we need
to wait until gadget driver has had a chance
to process the request.

In case of USB_GADGET_DELAYED_STATUS, that means
we need to defer usb_gadget_set_state() until
the upcoming usb_ep_queue().

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c