linux_dsm_epyc7002/drivers/soc/mediatek
Nicolas Boichat a2eaddba03 soc: mediatek: Check if power domains can be powered on at boot time
[ Upstream commit 4007844b05815717f522c7ea9914e24ad0ff6c79 ]

In the error case, where a power domain cannot be powered on
successfully at boot time (in mtk_register_power_domains),
pm_genpd_init would still be called with is_off=false, and the
system would later try to disable the power domain again, triggering
warnings as disabled clocks are disabled again (and other potential
issues).

Also print a warning splat in that case, as this should never
happen.

Fixes: c84e358718 ("soc: Mediatek: Add SCPSYS power domain driver")
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Link: https://lore.kernel.org/r/20200928113107.v2.1.I5e6f8c262031d0451fe7241b744f4f3111c1ce71@changeid
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:52:56 +01:00
..
Kconfig soc: mediatek: Enable mmsys driver by default if Mediatek arch is selected 2020-05-20 12:47:02 +02:00
Makefile clk / soc: mediatek: Move mt8173 MMSYS to platform driver 2020-04-13 13:01:16 +02:00
mtk-cmdq-helper.c soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api 2020-09-25 17:27:39 +02:00
mtk-infracfg.c soc: mediatek: mtk-infracfg: Fix kerneldoc 2020-09-25 17:27:24 +02:00
mtk-mmsys.c clk/soc: mediatek: mt6779: Bind clock driver from platform device 2020-05-20 12:49:35 +02:00
mtk-pmic-wrap.c soc: mediatek: pwrap: add support for MT6359 PMIC 2020-02-17 11:07:25 +01:00
mtk-scpsys.c soc: mediatek: Check if power domains can be powered on at boot time 2020-12-30 11:52:56 +01:00