This Patch corrects the XHCI reset for OTG mode. The host cannot
have Hard Reset while in OTG mode because that will affect the
OTG peripheral mode event buffers and it will not function.
The macro for OTG is USB_DWC3_OTG not USB_DWC3_DUAL_ROLE. This patch
corrects the same.
Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
xhci_dbg_trace(xhci, trace_xhci_dbg_init, "// Reset the HC");
command = readl(&xhci->op_regs->command);
-#ifdef CONFIG_USB_DWC3_DUAL_ROLE
+#ifdef CONFIG_USB_DWC3_OTG
command |= CMD_LRESET;
#else
command |= CMD_RESET;
udelay(1000);
ret = xhci_handshake(&xhci->op_regs->command,
-#ifdef CONFIG_USB_DWC3_DUAL_ROLE
+#ifdef CONFIG_USB_DWC3_OTG
CMD_LRESET,
#else
CMD_RESET,