aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManish Narani <manish.narani@xilinx.com>2017-03-23 15:56:13 +0530
committerMichal Simek <michal.simek@xilinx.com>2017-03-24 09:02:00 +0100
commite88e772fb46f2f2f5912502c45b2ae718e810aa6 (patch)
treea6050abb59ae406c4893b2670293406c86a53868
parentb554d9c73addd465b1c6a7ed923f55aaa0e37660 (diff)
downloadlinux-e88e772fb46f2f2f5912502c45b2ae718e810aa6.tar.gz
usb: xhci: Set XHCI Light Reset for DWC3_OTG mode
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>
-rw-r--r--drivers/usb/host/xhci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 3325c7dff02ca8..5d9970b2bc7109 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -174,7 +174,7 @@ int xhci_reset(struct xhci_hcd *xhci)
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;
@@ -192,7 +192,7 @@ int xhci_reset(struct xhci_hcd *xhci)
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,