Page MenuHomeFreeBSD

acpi.c: ignore _STA for atrtc SystemCMOS address space is exist if CMOS RTC Not Present bit is not set at IAPC_BOOT_ARCH in FADT.
ClosedPublic

Authored by takawata on Jan 14 2022, 5:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 7:00 AM
Unknown Object (File)
Fri, Dec 20, 3:28 PM
Unknown Object (File)
Mon, Dec 16, 10:02 AM
Unknown Object (File)
Thu, Dec 12, 2:05 PM
Unknown Object (File)
Nov 23 2024, 1:27 PM
Unknown Object (File)
Nov 9 2024, 8:15 PM
Unknown Object (File)
Nov 7 2024, 5:58 PM
Unknown Object (File)
Oct 18 2024, 12:35 AM
Subscribers
None

Details

Summary

atrtc driver implements System CMOS address space and check the bit. So enable probe and attach the driver if the device is disabled.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43918
Build 40806: arc lint + arc unit

Event Timeline

takawata created this revision.

Suggestion on the commit message:

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.
This revision is now accepted and ready to land.Jan 20 2022, 7:22 PM