]> git.karo-electronics.de Git - linux-beck.git/commit
usb: dwc2: gadget: force gadget initialization in dev mode
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 9 Jan 2015 12:39:09 +0000 (13:39 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 21:34:54 +0000 (15:34 -0600)
commit1b7a66b4d3399da5e0b13cf90fb4bd33b7197ff2
treeb6a73723f6b19e849a6898a0593f40fb61038c9b
parent596d696a5d0e066f2ed4bd6b0e40dedd52513c7c
usb: dwc2: gadget: force gadget initialization in dev mode

When booting with id pin grounded, dwc2 default to host mode.
Thus, force device mode prior initializing gadget part.
Else fifo init will fail since fifo values are not correct
in host mode.

Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c