commit | 1b7a66b4d3399da5e0b13cf90fb4bd33b7197ff2 | [log] [tgz] |
---|---|---|
author | Gregory Herrero <gregory.herrero@intel.com> | Fri Jan 09 13:39:09 2015 +0100 |
committer | Felipe Balbi <balbi@ti.com> | Mon Jan 12 15:34:54 2015 -0600 |
tree | b6a73723f6b19e849a6898a0593f40fb61038c9b | |
parent | 596d696a5d0e066f2ed4bd6b0e40dedd52513c7c [diff] |
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>