Page MenuHomeFreeBSD

acpi: Fix trying to enter NONE state
ClosedPublic

Authored by obiwac on Feb 5 2026, 12:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 17, 3:48 PM
Unknown Object (File)
Tue, Sep 8, 7:39 PM
Unknown Object (File)
Wed, Sep 2, 5:04 PM
Unknown Object (File)
Mon, Aug 31, 5:25 PM
Unknown Object (File)
Sat, Aug 29, 5:25 PM
Unknown Object (File)
Thu, Aug 27, 5:27 PM
Unknown Object (File)
Wed, Aug 26, 4:42 AM
Unknown Object (File)
Fri, Aug 21, 11:15 PM
Subscribers

Details

Summary

In acpi_system_eventhandler_sleep(), I forgot to update
ACPI_STATE_UNKNOWN when switching to new sleep types.

Reported by: eduardo@
Fixes: 97d152698f48 ("acpi: Use sleep types defined in sys/power.h")
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I do not see any other such type mistake with enum power_stype involved (have checked quite a number of references, including all of acpic.c and subr_power.c).

This revision is now accepted and ready to land.Feb 5 2026, 1:39 PM
This revision was automatically updated to reflect the committed changes.