]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
soc: mediatek: SCPSYS: Fix double enabling of regulators
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 22 Jan 2016 12:39:25 +0000 (13:39 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 1 Feb 2016 10:28:07 +0000 (11:28 +0100)
commitcc8ed76938b5cf6a54ab3d60edabaf808dc960d1
treebb14934f59d46f1ff3b0bd7e89a3f94116443a22
parentbe29523da38f959799fddceb25d052e498ab625a
soc: mediatek: SCPSYS: Fix double enabling of regulators

With CONFIG_PM enabled do not call genpd->power_on manually as this
will cause the regulators being turned on once in SCPSYS probe and
then again when the genpd core turns on the domains. Instead, call
genpd->power_on only with CONFIG_PM disabled and tell the genpd core
that the domains are disabled when registered.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-scpsys.c