]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: pmc_atom: Check state of PMC clocks on s2idle
authorHans de Goede <hdegoede@redhat.com>
Tue, 5 Mar 2024 10:59:14 +0000 (11:59 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 12 Mar 2024 10:48:20 +0000 (12:48 +0200)
commit86cef4593e04b192d62b71f7bcf97fced916150b
tree58e879a56143fb9b02f9416ba4ce5c43aea7a12d
parent1bde4afcd190e74368438ddf98d50e637ff9303f
platform/x86: pmc_atom: Check state of PMC clocks on s2idle

Extend the s2idle check with checking that none of the PMC clocks
is in the forced-on state. If one of the clocks is in forced on
state then S0i3 cannot be reached.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240305105915.76242-5-hdegoede@redhat.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/pmc_atom.c