]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: dts: mediatek: mt8186: Add missing clocks to ssusb power domains
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Tue, 13 Feb 2024 15:02:37 +0000 (10:02 -0500)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:30 +0000 (18:19 -0400)
commit8781c3f4d848201ea30a6671a3d7889b5ee667a9
treecc6b3d07e1764868961d8e1ac18fa61a988c9faf
parent8a56f8da965572a156fc69da428e7be4cf7d2ebd
arm64: dts: mediatek: mt8186: Add missing clocks to ssusb power domains

[ Upstream commit a00d4a98af44e025891e97c490b2545368a25e08 ]

The ssusb power domains currently don't list any clocks, despite
depending on some, and thus rely on the bootloader leaving the required
clocks on in order to work.

When booting with the upstream arm64 defconfig, the power domain
controller will defer probe until modules have loaded since it has an
indirect dependency on CONFIG_MTK_CMDQ, which is configured as a module.
However at the point where modules are loaded, unused clocks are also
disabled, causing the ssusb domains to fail to be enabled and
consequently the controller to fail probe:

mtk-power-controller 10006000.syscon:power-controller: /soc/syscon@10006000/power-controller/power-domain@4: failed to power on domain: -110
mtk-power-controller: probe of 10006000.syscon:power-controller failed with error -110

Add the missing clocks for the ssusb power domains so that they can
successfully probe without relying on the bootloader state.

Fixes: d9e43c1e7a38 ("arm64: dts: mt8186: Add power domains controller")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20240213-mt8186-ssusb-domain-clk-fix-v2-1-1f981d35f3fd@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/mediatek/mt8186.dtsi