]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit310577d24d1800a20565e608f5b0e59442953780
tree89bc267e8b8c913e870179216027325dd4e0dda2
parent10fdbebab80596d38e56cf4cf40cb83ef2236ff4
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: cca04df86a10 ("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