diff options
author | Takanori Watanabe <takawata@FreeBSD.org> | 2022-01-21 06:30:46 +0000 |
---|---|---|
committer | Takanori Watanabe <takawata@FreeBSD.org> | 2022-01-21 06:30:46 +0000 |
commit | 5c69be708433c7027b6a08f3d1487cd93d93318f (patch) | |
tree | edbd6728a0716a11a506704d7bf8f5183ac88c20 | |
parent | 9ce46cbc95d7a6fccb55af0d42cbb85c29f10639 (diff) | |
download | src-5c69be708433c7027b6a08f3d1487cd93d93318f.tar.gz src-5c69be708433c7027b6a08f3d1487cd93d93318f.zip |
acpi: Ignore _STA and never disable AT RTC devices
atrtc(4) should always install a SystemCMOS address space handler unless
the RTC Not Present bit is not set in IAPC_BOOT_ARCH in the FADT.
The atrtc(4) driver already checks this bit, but _STA can return not-present
even when this bit is clear.
Reviewed by : jhb
Differential Revision: https://reviews.freebsd.org/D33891
-rw-r--r-- | sys/dev/acpica/acpi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index cd465fdce72b..a2ea69086559 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -2260,6 +2260,15 @@ acpi_probe_child(ACPI_HANDLE handle, UINT32 level, void *context, void **status) /* Never disable PCI link devices. */ if (acpi_MatchHid(handle, "PNP0C0F")) break; + + /* + * RTC Device should be enabled for CMOS register space + * unless FADT indicate it is not present. + * (checked in RTC probe routine.) + */ + if (acpi_MatchHid(handle, "PNP0B00")) + break; + /* * Docking stations should remain enabled since the system * may be undocked at boot. |