kernel_optimize_test/drivers/usb/dwc3
Li Jun 996f7c4a1f usb: dwc3: core: balance phy init and exit
commit 8cfac9a6744fcb143cb3e94ce002f09fd17fadbb upstream.

After we start to do core soft reset while usb role switch,
the phy init is invoked at every switch to device mode, but
its counter part de-init is missing, this causes the actual
phy init can not be done when we really want to re-init phy
like system resume, because the counter maintained by phy
core is not 0. considering phy init is actually redundant for
role switch, so move out the phy init from core soft reset to
dwc3 core init where is the only place required.

Fixes: f88359e1588b ("usb: dwc3: core: Do core softreset when switch mode")
Cc: <stable@vger.kernel.org>
Tested-by: faqiang.zhu <faqiang.zhu@nxp.com>
Tested-by: John Stultz <john.stultz@linaro.org> #HiKey960
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Li Jun <jun.li@nxp.com>
Link: https://lore.kernel.org/r/1631068099-13559-1-git-send-email-jun.li@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-30 10:11:00 +02:00
..
core.c usb: dwc3: core: balance phy init and exit 2021-09-30 10:11:00 +02:00
core.h
debug.h
debugfs.c
drd.c
dwc3-exynos.c
dwc3-haps.c
dwc3-keystone.c
dwc3-meson-g12a.c usb: dwc3: meson-g12a: add IRQ check 2021-09-15 09:50:39 +02:00
dwc3-of-simple.c
dwc3-omap.c
dwc3-pci.c
dwc3-qcom.c usb: dwc3: qcom: add IRQ check 2021-09-15 09:50:39 +02:00
dwc3-st.c
ep0.c
gadget.c usb: dwc3: gadget: Stop EP0 transfers during pullup disable 2021-09-03 10:09:23 +02:00
gadget.h
host.c
io.h
Kconfig
Makefile
trace.c
trace.h
ulpi.c