]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rtc-cmos: Do not check ACPI_FADT_LOW_POWER_S0
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Aug 2022 18:23:59 +0000 (20:23 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 8 Aug 2022 18:36:01 +0000 (20:36 +0200)
commit1d54461aea1edafb2758b4ffeb39ddb8c6d53273
treea8d5c77c6869fb6ab177fe5b53c9a531ab6b1426
parent5cd2345fd898fad5b952baa777d8b6c5e75f20d5
rtc: rtc-cmos: Do not check ACPI_FADT_LOW_POWER_S0

The ACPI_FADT_LOW_POWER_S0 flag merely means that it is better to
use low-power S0 idle on the given platform than S3 (provided that
the latter is supported) and it doesn't preclude using either of
them (which of them will be used depends on the choices made by user
space).

For this reason, there is no benefit from checking that flag in
use_acpi_alarm_quirks().

First off, it cannot be a bug to do S3 with use_acpi_alarm set,
because S3 can be used on systems with ACPI_FADT_LOW_POWER_S0 and it
must work if really supported, so the ACPI_FADT_LOW_POWER_S0 check is
not needed to protect the S3-capable systems from failing.

Second, suspend-to-idle can be carried out on a system with
ACPI_FADT_LOW_POWER_S0 unset and it is expected to work, so if setting
use_acpi_alarm is needed to handle that case correctly, it should be
set regardless of the ACPI_FADT_LOW_POWER_S0 value.

Accordingly, drop the ACPI_FADT_LOW_POWER_S0 check from
use_acpi_alarm_quirks().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/12054246.O9o76ZdvQC@kreacher
drivers/rtc/rtc-cmos.c