]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite73034602dc4f68d69ab88a4374c368cd6bb960c
tree9b4ed511faf56b54acac7287e80649f77245e076
parentdc74b46bf3b26deee213d41b4757faa4640c1ea4
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