summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2016-04-14 23:51:51 +0200
committerKevin Hilman <khilman@baylibre.com>2016-04-14 23:51:51 +0200
commit2193a3fd7bc6ffd607c1a791d05d22a4a2282c57 (patch)
tree5adc142c76147384d1f4035ce538bf49e2425e37 /drivers
parentMerge tag 'mvebu-fixes-4.6-1' of git://git.infradead.org/linux-mvebu into fixes (diff)
parentRevert "soc: mediatek: SCPSYS: Fix double enabling of regulators" (diff)
downloadlinux-2193a3fd7bc6ffd607c1a791d05d22a4a2282c57.tar.xz
linux-2193a3fd7bc6ffd607c1a791d05d22a4a2282c57.zip
Merge tag 'v4.6-soc-fixes' of https://github.com/mbgg/linux-mediatek into fixes
- fix boot error reverting commit cc8ed76938b5 ("soc: mediatek: SCPSYS: Fix double enabling of regulators") * tag 'v4.6-soc-fixes' of https://github.com/mbgg/linux-mediatek: Revert "soc: mediatek: SCPSYS: Fix double enabling of regulators"
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/mediatek/mtk-scpsys.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c
index 57e781c71e67..837effe19907 100644
--- a/drivers/soc/mediatek/mtk-scpsys.c
+++ b/drivers/soc/mediatek/mtk-scpsys.c
@@ -491,13 +491,14 @@ static int scpsys_probe(struct platform_device *pdev)
genpd->dev_ops.active_wakeup = scpsys_active_wakeup;
/*
- * With CONFIG_PM disabled turn on all domains to make the
- * hardware usable.
+ * Initially turn on all domains to make the domains 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);
}
/*