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
This commit is contained in:
Takanori Watanabe 2022-01-21 15:30:46 +09:00
parent 9ce46cbc95
commit 5c69be7084

View File

@ -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.