Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166903800
D56816.id177406.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
873 B
Referenced Files
None
Subscribers
None
D56816.id177406.diff
View Options
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -366,6 +366,7 @@
struct acpi_spmc_softc *const sc = device_get_softc(dev);
const ACPI_HANDLE handle = acpi_get_handle(dev);
char buf[32];
+ int error;
/*
* ACPI_ID_PROBE() in acpi_spmc_probe() cannot succeed without a handle.
@@ -400,7 +401,12 @@
}
/* Get device constraints. We can only call this once so do this now. */
- acpi_spmc_get_constraints(sc);
+ error = acpi_spmc_get_constraints(sc);
+ if (error != 0)
+ /* acpi_spmc_get_constraints() takes care of cleaning up. */
+ device_printf(dev,
+ "Could not parse power state constraints (%d), "
+ "will not check for them before suspend\n", error);
sc->eh_suspend = EVENTHANDLER_REGISTER(acpi_post_dev_suspend,
acpi_spmc_suspend, dev, 0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 4:05 PM (18 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36899282
Default Alt Text
D56816.id177406.diff (873 B)
Attached To
Mode
D56816: acpi_spmc(4): Global message on constraints parsing failure
Attached
Detach File
Event Timeline
Log In to Comment