linux-yocto/drivers/usb/dwc2
Michael Grzeschik 1ac826cebc usb: dwc2: also exit clock_gating when stopping udc while suspended
[ Upstream commit af076a41f8 ]

It is possible that the gadget will be disabled, while the udc is
suspended. When enabling the udc in that case, the clock gating
will not be enabled again. Leaving the phy unclocked. Even when the
udc is not enabled, connecting this powered but not clocked phy leads
to enumeration errors on the host side.

To ensure that the clock gating will be in an valid state, we ensure
that the clock gating will be enabled before stopping the udc.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Link: https://lore.kernel.org/r/20250417-dwc2_clock_gating-v1-1-8ea7c4d53d73@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-06 10:57:55 +02:00
..
core_intr.c
core.c
core.h
debug.h
debugfs.c
drd.c
gadget.c usb: dwc2: also exit clock_gating when stopping udc while suspended 2025-07-06 10:57:55 +02:00
hcd_ddma.c
hcd_intr.c
hcd_queue.c
hcd.c usb: dwc2: Fix HCD port connection race 2024-12-19 18:08:49 +01:00
hcd.h
hw.h
Kconfig
Makefile
params.c
pci.c
platform.c