dwc3: gadget: reinitialize core after each role change
authorRobert Baldyga <r.baldyga@samsung.com>
Mon, 23 Feb 2015 15:20:48 +0000 (16:20 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 13 Apr 2015 10:44:43 +0000 (12:44 +0200)
commita4fbeb0fd475c1688f883708d13b364d2e1c62db
tree906e55e0ec8fef1dd2b4ef3ec7f3ad3a169d68c7
parentdb90c1f564635f6cbc8facf8ee7b139b598a5675
dwc3: gadget: reinitialize core after each role change

According to the Databook in case of reconnection and role switching
the core should be completely reinitialized, excepting first connection
as peripheral when core was initialized during probing.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
drivers/usb/dwc3/gadget.c