usb: dwc3: gadget: move us to Default State after reset
authorFelipe Balbi <balbi@ti.com>
Tue, 20 Dec 2011 13:37:21 +0000 (15:37 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 20 Dec 2011 16:28:06 +0000 (18:28 +0200)
commit961906edb549c95f4cc33e4f3dbfd0fcc364954d
tree6c89b169ae2e5ae12c3bcbf341bf14197011a0e5
parent68d3e668d245bb8300c7c6ddbc8508ddfe352e0f
usb: dwc3: gadget: move us to Default State after reset

After a bus reset, we should move our state to
Default, in order to be able to re-enumerate again.

I only managed to trigger this problem with g_ether
by removing the cable after a few transfers had been
completed.

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