]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
soc: amlogic: meson-gx-pwrc-vpu: fix error on shutdown when domain is powered off
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 21 Dec 2017 19:41:02 +0000 (20:41 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit8a5b876012f937f6b791c02d8b893e5f2159e693
tree2aad493e49d807ae2464c0339cac857f5f5f102a
parent7ac005e274dbc95d4ca969efe20d3c091a36340b
soc: amlogic: meson-gx-pwrc-vpu: fix error on shutdown when domain is powered off

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 87f88732d25e6175cb4faa8070658f604660d720 ]

When operating the system headless headless, the domain is never
powered on, leaving the clocks disabled. The shutdown function then
tries to disable the already disabled clocks, resulting in errors.
Therefore call meson_gx_pwrc_vpu_power_off() only if domain is
powered on.
This patch fixes the described issue on my system (Odorid-C2).

Fixes: 339cd0ea0822 "soc: amlogic: meson-gx-pwrc-vpu: fix power-off when powered by bootloader"
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/soc/amlogic/meson-gx-pwrc-vpu.c