Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'acpi-pm'

* acpi-pm:
ACPI: PM: Add ACPI ID of Alder Lake Fan
Revert "Revert "ACPI: scan: Turn off unused power resources during initialization""

+5 -2
+1
drivers/acpi/device_pm.c
··· 1313 1313 {"PNP0C0B", }, /* Generic ACPI fan */ 1314 1314 {"INT3404", }, /* Fan */ 1315 1315 {"INTC1044", }, /* Fan for Tiger Lake generation */ 1316 + {"INTC1048", }, /* Fan for Alder Lake generation */ 1316 1317 {} 1317 1318 }; 1318 1319 struct acpi_device *adev = ACPI_COMPANION(dev);
+1
drivers/acpi/internal.h
··· 142 142 int acpi_power_get_inferred_state(struct acpi_device *device, int *state); 143 143 int acpi_power_on_resources(struct acpi_device *device, int state); 144 144 int acpi_power_transition(struct acpi_device *device, int state); 145 + void acpi_turn_off_unused_power_resources(void); 145 146 146 147 /* -------------------------------------------------------------------------- 147 148 Device Power Management
+1 -1
drivers/acpi/power.c
··· 995 995 996 996 mutex_unlock(&power_resource_list_lock); 997 997 } 998 + #endif 998 999 999 1000 void acpi_turn_off_unused_power_resources(void) 1000 1001 { ··· 1016 1015 1017 1016 mutex_unlock(&power_resource_list_lock); 1018 1017 } 1019 - #endif
+2
drivers/acpi/scan.c
··· 2360 2360 } 2361 2361 } 2362 2362 2363 + acpi_turn_off_unused_power_resources(); 2364 + 2363 2365 acpi_scan_initialized = true; 2364 2366 2365 2367 out:
-1
drivers/acpi/sleep.h
··· 8 8 extern struct mutex acpi_device_lock; 9 9 10 10 extern void acpi_resume_power_resources(void); 11 - extern void acpi_turn_off_unused_power_resources(void); 12 11 13 12 static inline acpi_status acpi_set_waking_vector(u32 wakeup_address) 14 13 {