History

ACPI / PM: Do not execute _PS0 for devices without _PSC during initialization

Commit b378549 (ACPI / PM: Do not power manage devices in unknown initial states) added code to force devices without _PSC, but having _PS0 defined in the ACPI namespace, into ACPI power state D0 by executing _PS0 for them. That turned out to break Toshiba P870-303, however, so revert that code.

Rafael J. Wysocki committed 13 years ago

Commit 7cd84071 parent 9f29ab11 file · +6 −4Browse files

Unified · Split

drivers/acpi/device_pm.c+6−4
@@ -278,11 +278,13 @@ int acpi_bus_init_power(struct acpi_device *device) · 277 unmodified lines
278278 if (result)
279279 return result;
280280 } else if (state == ACPI_STATE_UNKNOWN) {
281− /* No power resources and missing _PSC? Try to force D0. */
281+ /*
282+ * No power resources and missing _PSC? Cross fingers and make
283+ * it D0 in hope that this is what the BIOS put the device into.
284+ * [We tried to force D0 here by executing _PS0, but that broke
285+ * Toshiba P870-303 in a nasty way.]
286+ */
282287 state = ACPI_STATE_D0;
283− result = acpi_dev_pm_explicit_set(device, state);
284− if (result)
285− return result;
286288 }
287289 device->power.state = state;
288290 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t