OSDN Git Service

soc: amlogic: meson-gx-pwrc-vpu: fix power-off when powered by bootloader
authorNeil Armstrong <narmstrong@baylibre.com>
Fri, 3 Nov 2017 15:43:24 +0000 (16:43 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 9 Nov 2017 10:42:17 +0000 (11:42 +0100)
commit339cd0ea082287ea8e2b7e7159a5a33665a2cbe3
tree89bc267e8b8c913e870179216027325dd4e0dda2
parentad54c3e75d27686ac7e97e17d242fbc568f6c2e3
soc: amlogic: meson-gx-pwrc-vpu: fix power-off when powered by bootloader

In the case the VPU power domain has been powered on by the bootloader
and no driver are attached to this power domain, the genpd will power it
off after a certain amount of time, but the clocks hasn't been enabled
by the kernel itself and the power-off will trigger some faults.
This patch enable the clocks to have a coherent state for an eventual
poweroff and switches to the pm_domain_always_on_gov governor.

Fixes: 75fcb5ca4b46 ("soc: amlogic: add Meson GX VPU Domains driver")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/amlogic/meson-gx-pwrc-vpu.c