usb: dwc3: Set default mode for DWC_usb3 v3.30a and higher
authorThinh Nguyen <thinh.nguyen@synopsys.com>
Sat, 3 Nov 2018 01:41:42 +0000 (18:41 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 26 Nov 2018 07:06:32 +0000 (09:06 +0200)
commit89a9cc47513e91bc91ba2c438d5e422a0c8d05e7
tree2f85749f36d6d8399e21e6d05ab9318d48efc900
parentceb94bc52c437463f0903e61060a94a2226fb672
usb: dwc3: Set default mode for DWC_usb3 v3.30a and higher

DWC_usb31 and DWC_usb3 v3.30a and higher do not support OTG mode. If
the controller supports DRD but the dr_mode is not specified or set to
OTG, then set the mode to peripheral.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h