mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "usb: dwc3: Allow dwc_usb31 to operate in dual-role"
This commit is contained in:
commit
873b70588b
1 changed files with 0 additions and 9 deletions
|
|
@ -84,15 +84,6 @@ static int dwc3_get_dr_mode(struct dwc3 *dwc)
|
|||
mode = USB_DR_MODE_HOST;
|
||||
else if (IS_ENABLED(CONFIG_USB_DWC3_GADGET))
|
||||
mode = USB_DR_MODE_PERIPHERAL;
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
if (mode == USB_DR_MODE_OTG &&
|
||||
dwc->revision >= DWC3_REVISION_330A)
|
||||
mode = USB_DR_MODE_PERIPHERAL;
|
||||
}
|
||||
|
||||
if (mode != dwc->dr_mode) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue