linux-stable/drivers/soc/mediatek
Hsin-Yi Wang eed6ff1bb2 soc: mtk-pm-domains: do not register smi node as syscon
Mediatek requires mmsys clocks to be unprepared during suspend,
otherwise system has chances to hang.

syscon_regmap_lookup_by_phandle_optional() will attach and prepare the
first clock in smi node, leading to additional prepare to the clock
which is not balanced with the prepare/unprepare pair in resume/suspend
callbacks.

If a power domain node requests an smi node and the smi node's first
clock is an mmsys clock, it will results in an unstable suspend resume.

Fixes: f414854c88 ("soc: mediatek: pm-domains: Add SMI block as bus protection block")
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: chun-jie.chen <chun-jie.chen@mediatek.com>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20210601035905.2970384-2-hsinyi@chromium.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
2021-06-02 13:53:31 +02:00
..
Kconfig soc: mediatek: mmsys: Specify HAS_IOMEM dependency for MTK_MMSYS 2020-12-10 15:33:56 +01:00
Makefile soc / drm: mediatek: Move mtk mutex driver to soc folder 2021-02-04 22:55:46 +08:00
mt8167-mmsys.h soc: mediatek: mmsys: Add support for MT8167 SoC 2021-04-06 12:57:10 +02:00
mt8167-pm-domains.h soc: mediatek: pm-domains: Add a power domain names for mt8167 2021-04-01 11:36:04 +02:00
mt8173-pm-domains.h soc: mediatek: pm-domains: Add a meaningful power domain name 2021-04-01 11:36:04 +02:00
mt8183-mmsys.h soc: mediatek: mmsys: Add mt8183 mmsys routing table 2021-03-31 13:52:52 +02:00
mt8183-pm-domains.h soc: mediatek: pm-domains: Add a power domain names for mt8183 2021-04-01 11:36:04 +02:00
mt8192-pm-domains.h soc: mediatek: pm-domains: Add a power domain names for mt8192 2021-04-01 11:36:04 +02:00
mtk-cmdq-helper.c soc: mediatek: cmdq: Remove cmdq_pkt_flush() 2021-01-31 12:35:46 +01:00
mtk-devapc.c soc: mediatek: add missing MODULE_DEVICE_TABLE 2021-05-12 18:29:37 +02:00
mtk-infracfg.c soc: mediatek: pm_domains: Make bus protection generic 2020-11-27 12:04:42 +01:00
mtk-mmsys.c soc: mediatek: mmsys: Add support for MT8167 SoC 2021-04-06 12:57:10 +02:00
mtk-mmsys.h soc: mediatek: mmsys: Use an array for setting the routing registers 2021-03-30 11:07:31 +02:00
mtk-mutex.c soc: mediatek: Make symbol 'mtk_mutex_driver' static 2021-04-01 11:27:54 +02:00
mtk-pm-domains.c soc: mtk-pm-domains: do not register smi node as syscon 2021-06-02 13:53:31 +02:00
mtk-pm-domains.h soc: mediatek: pm-domains: Add a meaningful power domain name 2021-04-01 11:36:04 +02:00
mtk-pmic-wrap.c soc: mediatek: pwrap: add pwrap driver for MT6873/8192 SoCs 2021-03-30 12:24:09 +02:00
mtk-scpsys.c soc: mediatek: Check if power domains can be powered on at boot time 2020-10-26 10:45:04 +01:00