Page MenuHomeFreeBSD

acpi: Fix trying to enter NONE state
ClosedPublic

Authored by obiwac on Feb 5 2026, 12:52 AM.
Tags
None
Referenced Files
F154288834: D55119.id171226.diff
Mon, Apr 27, 3:23 PM
F154254212: D55119.id171185.diff
Mon, Apr 27, 10:31 AM
Unknown Object (File)
Fri, Apr 17, 10:39 AM
Unknown Object (File)
Wed, Apr 1, 7:39 AM
Unknown Object (File)
Mar 17 2026, 10:43 AM
Unknown Object (File)
Mar 9 2026, 2:22 PM
Unknown Object (File)
Mar 8 2026, 9:34 PM
Unknown Object (File)
Mar 8 2026, 2:06 AM
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.