mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 10:32:24 +00:00
For the Bay Trail or Cherry Trail SoC to enter the S0i3 power-level at s2idle suspend requires most of the hw-blocks / devices in the SoC to be in D3 when entering s2idle suspend. If some devices are not in D3 then the SoC will stay in a higher power state, consuming much more power from the battery then in S0i3. Use the new acpi_s2idle_dev_ops and acpi_register_lps0_dev() functionality to register a new s2idle check function which checks that all hardware blocks in the North complex (controlled by Punit) are in a state that allows the SoC to enter S0i3 and prints an error message for any device in D0. Signed-off-by: Johannes Stezenbach <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Acked-by: "Borislav Petkov (AMD)" <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> [hdegoede: Use acpi_s2idle_dev_ops] Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>