linux/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>
History 2025-07-06 10:57:55 +02:00
..
core.c usb: dwc2: Remove redundant license text 2022-09-22 15:52:29 +02:00
core.h usb: dwc2: gadget: LPM flow fix 2024-04-03 15:19:52 +02:00
core_intr.c usb: dwc2: gadget: LPM flow fix 2024-04-03 15:19:52 +02:00
debug.h USB: dwc2: Use the correct style for SPDX License Identifier 2020-05-05 10:58:50 +03:00
debugfs.c usb: dwc2: add otg_rev and otg_caps information for gadget driver 2021-10-25 09:20:26 +02:00
drd.c usb: dwc2: drd: fix clock gating on USB role switch 2024-10-17 15:21:19 +02:00
gadget.c usb: dwc2: also exit clock_gating when stopping udc while suspended 2025-07-06 10:57:55 +02:00
hcd.c usb: dwc2: Fix HCD port connection race 2024-12-19 18:08:49 +01:00
hcd.h usb: dwc2: Remove redundant license text 2022-09-22 15:52:29 +02:00
hcd_ddma.c usb: dwc2: host: Fix dereference issue in DDMA completion flow. 2024-04-27 17:07:15 +02:00
hcd_intr.c USB: dwc2: write HCINT with INTMASK applied 2023-12-03 07:32:12 +01:00
hcd_queue.c usb: dwc2: Remove redundant license text 2022-09-22 15:52:29 +02:00
hw.h usb: dwc2: host: Fix ISOC flow in DDMA mode 2024-04-03 15:19:52 +02:00
Kconfig usb: dwc2: override PHY input signals with usb role switch support 2020-10-02 13:29:13 +03:00
Makefile usb: dwc2: override PHY input signals with usb role switch support 2020-10-02 13:29:13 +03:00
params.c usb: dwc2: Remove redundant license text 2022-09-22 15:52:29 +02:00
pci.c usb: dwc2: Remove redundant license text 2022-09-22 15:52:29 +02:00
platform.c usb: dwc2: Adjust the timing of USB Driver Interrupt Registration in the Crashkernel Scenario 2024-10-17 15:22:16 +02:00