]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc2: disable platform lowlevel hw resources during shutdown
authorJisheng Zhang <jszhang@kernel.org>
Sun, 29 Jun 2025 09:46:55 +0000 (17:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:55:04 +0000 (13:55 +0100)
commitcc9b6180a4c44ab71559bf8bb3130c620130d9af
treef9d7c67dc89750856e33dd1782a0ca9ec000ac78
parent1358e9fecb89cf603621f85cd9de198576214a5b
usb: dwc2: disable platform lowlevel hw resources during shutdown

[ Upstream commit 7481a97c5f49f10c7490bb990d0e863f23b9bb71 ]

On some SoC platforms, in shutdown stage, most components' power is cut
off, but there's still power supply to the so called always-on
domain, so if the dwc2's regulator is from the always-on domain, we
need to explicitly disable it to save power.

Disable platform lowlevel hw resources such as phy, clock and
regulators etc. in device shutdown hook to reduce non-necessary power
consumption when the platform enters shutdown stage.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Link: https://lore.kernel.org/r/20250629094655.747-1-jszhang@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: b6ebcfdcac40 ("usb: dwc2: fix hang during shutdown if set as peripheral")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/dwc2/platform.c