soc: mtk-pm-domains: do not register smi node as syscon
authorHsin-Yi Wang <hsinyi@chromium.org>
Tue, 1 Jun 2021 03:59:04 +0000 (11:59 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 2 Jun 2021 11:53:31 +0000 (13:53 +0200)
commiteed6ff1bb2da65067d928f4ab322c7d75f944fa4
treef247e33f7800ab40f31070ead52dcd1642e2715e
parentba96de3ae5a7e2121cac80053b277eb2ab51a0ae
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: f414854c8843 ("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>
drivers/soc/mediatek/mtk-pm-domains.c