git: 2c59dd4cfdd6 - main - acpi: Set status to AE_ERROR if device suspend failed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Sep 2026 15:49:35 UTC
The branch main has been updated by obiwac:
URL: https://cgit.FreeBSD.org/src/commit/?id=2c59dd4cfdd6b95f0aa05a6bd886be672a39f105
commit 2c59dd4cfdd6b95f0aa05a6bd886be672a39f105
Author: Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-09-16 17:43:34 +0000
Commit: Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-09-17 15:48:52 +0000
acpi: Set status to AE_ERROR if device suspend failed
Previously, we would be returning AE_OK from acpi_EnterSleepState().
Reviewed by: olce
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59735
---
sys/dev/acpica/acpi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 5b4a5024b891..2ca70b2f0ed4 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -3812,6 +3812,7 @@ acpi_EnterSleepState(struct acpi_softc *sc, enum power_stype stype)
*/
if (DEVICE_SUSPEND(root_bus) != 0) {
device_printf(sc->acpi_dev, "device_suspend failed\n");
+ status = AE_ERROR;
goto backout;
}
EVENTHANDLER_INVOKE(acpi_post_dev_suspend, stype);