mirror of
https://github.com/torvalds/linux.git
synced 2024-09-21 15:33:19 +00:00
Revert "soc: mediatek: SCPSYS: Fix double enabling of regulators"
This reverts commit cc8ed76938
("soc: mediatek: SCPSYS: Fix double enabling of regulators") [1].
This patch fixes mt8173-evb failing boot issue. With commit [1],
genpd state will not sync to real power domain state. So some
resources such as clocks and regulators may stay in a wrong state.
There is no regulator double enabling issue on mainline kernel, so
we can refert commit [1] safely.
Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
parent
f55532a0c0
commit
d9c9f3b809
|
@ -491,13 +491,14 @@ static int scpsys_probe(struct platform_device *pdev)
|
||||||
genpd->dev_ops.active_wakeup = scpsys_active_wakeup;
|
genpd->dev_ops.active_wakeup = scpsys_active_wakeup;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* With CONFIG_PM disabled turn on all domains to make the
|
* Initially turn on all domains to make the domains usable
|
||||||
* hardware usable.
|
* with !CONFIG_PM and to get the hardware in sync with the
|
||||||
|
* software. The unused domains will be switched off during
|
||||||
|
* late_init time.
|
||||||
*/
|
*/
|
||||||
if (!IS_ENABLED(CONFIG_PM))
|
genpd->power_on(genpd);
|
||||||
genpd->power_on(genpd);
|
|
||||||
|
|
||||||
pm_genpd_init(genpd, NULL, true);
|
pm_genpd_init(genpd, NULL, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user