linux/drivers/pmdomain/mediatek
Eugen Hristev c41336f4d6 pmdomain: mediatek: fix race conditions with genpd
If the power domains are registered first with genpd and *after that*
the driver attempts to power them on in the probe sequence, then it is
possible that a race condition occurs if genpd tries to power them on
in the same time.
The same is valid for powering them off before unregistering them
from genpd.
Attempt to fix race conditions by first removing the domains from genpd
and *after that* powering down domains.
Also first power up the domains and *after that* register them
to genpd.

Fixes: 59b644b01c ("soc: mediatek: Add MediaTek SCPSYS power domains")
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231225133615.78993-1-eugen.hristev@collabora.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2024-01-23 13:19:15 +01:00
..
Kconfig
Makefile
mt6795-pm-domains.h pmdomain: mediatek: Unify configuration for infracfg and smi 2023-10-17 11:41:42 +02:00
mt8167-pm-domains.h pmdomain: mediatek: Unify configuration for infracfg and smi 2023-10-17 11:41:42 +02:00
mt8173-pm-domains.h pmdomain: mediatek: Unify configuration for infracfg and smi 2023-10-17 11:41:42 +02:00
mt8183-pm-domains.h pmdomain: mediatek: Unify configuration for infracfg and smi 2023-10-17 11:41:42 +02:00
mt8186-pm-domains.h pmdomain: mediatek: Unify configuration for infracfg and smi 2023-10-17 11:41:42 +02:00
mt8188-pm-domains.h pmdomain: mediatek: Unify configuration for infracfg and smi 2023-10-17 11:41:42 +02:00
mt8192-pm-domains.h pmdomain: mediatek: Unify configuration for infracfg and smi 2023-10-17 11:41:42 +02:00
mt8195-pm-domains.h pmdomain: mediatek: Unify configuration for infracfg and smi 2023-10-17 11:41:42 +02:00
mt8365-pm-domains.h pmdomain: mediatek: Add support for MT8365 2023-10-17 11:41:42 +02:00
mtk-pm-domains.c pmdomain: mediatek: fix race conditions with genpd 2024-01-23 13:19:15 +01:00
mtk-pm-domains.h pmdomain: mediatek: Add support for MTK_SCPD_STRICT_BUS_PROTECTION cap 2023-10-17 11:41:42 +02:00
mtk-scpsys.c