usb: dwc2: do not override forced dr_mode in gadget setup
authorPrzemek Rudy <prudy1@o2.pl>
Wed, 16 Mar 2016 22:10:26 +0000 (23:10 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 4 Apr 2016 12:18:48 +0000 (15:18 +0300)
commitecd9a7ad453c5effc9a26355b79ee83f1337cba4
tree9b4ed511faf56b54acac7287e80649f77245e076
parent4fc50ba5965ac2b360499d4a23eb10d04414dd36
usb: dwc2: do not override forced dr_mode in gadget setup

The host/device mode set with dr_mode should be kept all the time,
not being changed to OTG in gadget setup (by overriding CFGUSB_FORCEDEVMODE
and CFGUSB_FORCEHOSTMODE bits).

Acked-by: John Youn <johnyoun@synopsys.com>
Tested-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Przemek Rudy <prudy1@o2.pl>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c