summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-04-26 10:02:12 -0700
committerYe Li <ye.li@nxp.com>2022-04-06 18:03:37 +0800
commitfb1a119c70f0c5fd793f5a300b0868173615df10 (patch)
tree9ca453da3215732f146dd1a941fc135766169b02 /drivers/usb
parenta733bc3a690f5369040651e3a321643e0f6b145f (diff)
MLK-23574-40 Revert "usb: dwc3: switch to peripheral mode when exiting"
This reverts commit bbe3d4a6c14e17d251029e4dde07f184244e9a4a. If we set to periperal at exiting, will get a windows USB warning since it detect a new connection on device mode. Remove this patch to fix the problem Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 7afd553352835a54fe5b09be2e01177e9016a138) (cherry picked from commit d1f203931b9c27d0dfe7329dc4203a95b4a32416) (cherry picked from commit a2097c7061584680e75ed9f242624f4b100ae927)
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc3/core.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 714f2102d3..d3666e1ccb 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -736,12 +736,6 @@ static int dwc3_core_init_mode(struct dwc3 *dwc)
return 0;
}
-static void dwc3_gadget_run(struct dwc3 *dwc)
-{
- dwc3_writel(dwc->regs, DWC3_DCTL, DWC3_DCTL_RUN_STOP);
- mdelay(100);
-}
-
static void dwc3_core_stop(struct dwc3 *dwc)
{
u32 reg;
@@ -767,13 +761,6 @@ static void dwc3_core_exit_mode(struct dwc3 *dwc)
/* do nothing */
break;
}
-
- /*
- * switch back to peripheral mode
- * This enables the phy to enter idle and then, if enabled, suspend.
- */
- dwc3_set_mode(dwc, DWC3_GCTL_PRTCAP_DEVICE);
- dwc3_gadget_run(dwc);
}
#define DWC3_ALIGN_MASK (16 - 1)