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

Merge branches 'acpi-scan', 'acpi-misc', 'acpi-button' and 'acpi-dptf'

* acpi-scan:
ACPI: scan: Fix acpi_dma_configure_id() kerneldoc name

* acpi-misc:
ACPI: GED: fix -Wformat
ACPI: Fix whitespace inconsistencies

* acpi-button:
ACPI: button: Add DMI quirk for Medion Akoya E2228T

* acpi-dptf:
ACPI: DPTF: Support Alder Lake

+64 -43
+3 -3
drivers/acpi/acpi_video.c
··· 578 578 ACPI_VIDEO_FIRST_LEVEL - 1 - bqc_value; 579 579 580 580 level = device->brightness->levels[bqc_value + 581 - ACPI_VIDEO_FIRST_LEVEL]; 581 + ACPI_VIDEO_FIRST_LEVEL]; 582 582 } else { 583 583 level = bqc_value; 584 584 } ··· 990 990 goto out_free_levels; 991 991 992 992 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 993 - "found %d brightness levels\n", 994 - br->count - ACPI_VIDEO_FIRST_LEVEL)); 993 + "found %d brightness levels\n", 994 + br->count - ACPI_VIDEO_FIRST_LEVEL)); 995 995 return 0; 996 996 997 997 out_free_levels:
+1 -1
drivers/acpi/battery.c
··· 987 987 */ 988 988 if ((battery->state & ACPI_BATTERY_STATE_CRITICAL) || 989 989 (test_bit(ACPI_BATTERY_ALARM_PRESENT, &battery->flags) && 990 - (battery->capacity_now <= battery->alarm))) 990 + (battery->capacity_now <= battery->alarm))) 991 991 acpi_pm_wakeup_event(&battery->device->dev); 992 992 993 993 return result;
+12 -1
drivers/acpi/button.c
··· 89 89 */ 90 90 .matches = { 91 91 DMI_MATCH(DMI_SYS_VENDOR, "MEDION"), 92 - DMI_MATCH(DMI_PRODUCT_NAME, "E2215T MD60198"), 92 + DMI_MATCH(DMI_PRODUCT_NAME, "E2215T"), 93 + }, 94 + .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN, 95 + }, 96 + { 97 + /* 98 + * Medion Akoya E2228T, notification of the LID device only 99 + * happens on close, not on open and _LID always returns closed. 100 + */ 101 + .matches = { 102 + DMI_MATCH(DMI_SYS_VENDOR, "MEDION"), 103 + DMI_MATCH(DMI_PRODUCT_NAME, "E2228T"), 93 104 }, 94 105 .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN, 95 106 },
+1
drivers/acpi/dptf/dptf_pch_fivr.c
··· 106 106 107 107 static const struct acpi_device_id pch_fivr_device_ids[] = { 108 108 {"INTC1045", 0}, 109 + {"INTC1049", 0}, 109 110 {"", 0}, 110 111 }; 111 112 MODULE_DEVICE_TABLE(acpi, pch_fivr_device_ids);
+2
drivers/acpi/dptf/dptf_power.c
··· 229 229 {"INT3532", 0}, 230 230 {"INTC1047", 0}, 231 231 {"INTC1050", 0}, 232 + {"INTC1060", 0}, 233 + {"INTC1061", 0}, 232 234 {"", 0}, 233 235 }; 234 236 MODULE_DEVICE_TABLE(acpi, int3407_device_ids);
+6
drivers/acpi/dptf/int340x_thermal.c
··· 25 25 {"INT340A"}, 26 26 {"INT340B"}, 27 27 {"INTC1040"}, 28 + {"INTC1041"}, 28 29 {"INTC1043"}, 29 30 {"INTC1044"}, 30 31 {"INTC1045"}, 32 + {"INTC1046"}, 31 33 {"INTC1047"}, 34 + {"INTC1048"}, 35 + {"INTC1049"}, 36 + {"INTC1060"}, 37 + {"INTC1061"}, 32 38 {""}, 33 39 }; 34 40
+1 -1
drivers/acpi/event.c
··· 31 31 event.type = type; 32 32 event.data = data; 33 33 return (blocking_notifier_call_chain(&acpi_chain_head, 0, (void *)&event) 34 - == NOTIFY_BAD) ? -EINVAL : 0; 34 + == NOTIFY_BAD) ? -EINVAL : 0; 35 35 } 36 36 EXPORT_SYMBOL(acpi_notifier_call_chain); 37 37
+1 -1
drivers/acpi/evged.c
··· 101 101 102 102 switch (gsi) { 103 103 case 0 ... 255: 104 - sprintf(ev_name, "_%c%02hhX", 104 + sprintf(ev_name, "_%c%02X", 105 105 trigger == ACPI_EDGE_SENSITIVE ? 'E' : 'L', gsi); 106 106 107 107 if (ACPI_SUCCESS(acpi_get_handle(handle, ev_name, &evt_handle)))
+1
drivers/acpi/fan.c
··· 27 27 {"PNP0C0B", 0}, 28 28 {"INT3404", 0}, 29 29 {"INTC1044", 0}, 30 + {"INTC1048", 0}, 30 31 {"", 0}, 31 32 }; 32 33 MODULE_DEVICE_TABLE(acpi, fan_device_ids);
+1 -1
drivers/acpi/internal.h
··· 134 134 void acpi_power_add_remove_device(struct acpi_device *adev, bool add); 135 135 int acpi_power_wakeup_list_init(struct list_head *list, int *system_level); 136 136 int acpi_device_sleep_wake(struct acpi_device *dev, 137 - int enable, int sleep_state, int dev_state); 137 + int enable, int sleep_state, int dev_state); 138 138 int acpi_power_get_inferred_state(struct acpi_device *device, int *state); 139 139 int acpi_power_on_resources(struct acpi_device *device, int state); 140 140 int acpi_power_transition(struct acpi_device *device, int state);
+5 -5
drivers/acpi/nfit/core.c
··· 2175 2175 * these commands. 2176 2176 */ 2177 2177 enum nfit_aux_cmds { 2178 - NFIT_CMD_TRANSLATE_SPA = 5, 2179 - NFIT_CMD_ARS_INJECT_SET = 7, 2180 - NFIT_CMD_ARS_INJECT_CLEAR = 8, 2181 - NFIT_CMD_ARS_INJECT_GET = 9, 2178 + NFIT_CMD_TRANSLATE_SPA = 5, 2179 + NFIT_CMD_ARS_INJECT_SET = 7, 2180 + NFIT_CMD_ARS_INJECT_CLEAR = 8, 2181 + NFIT_CMD_ARS_INJECT_GET = 9, 2182 2182 }; 2183 2183 2184 2184 static void acpi_nfit_init_dsms(struct acpi_nfit_desc *acpi_desc) ··· 2632 2632 nfit_blk->bdw_offset = nfit_mem->bdw->offset; 2633 2633 mmio = &nfit_blk->mmio[BDW]; 2634 2634 mmio->addr.base = devm_nvdimm_memremap(dev, nfit_mem->spa_bdw->address, 2635 - nfit_mem->spa_bdw->length, nd_blk_memremap_flags(ndbr)); 2635 + nfit_mem->spa_bdw->length, nd_blk_memremap_flags(ndbr)); 2636 2636 if (!mmio->addr.base) { 2637 2637 dev_dbg(dev, "%s failed to map bdw\n", 2638 2638 nvdimm_name(nvdimm));
+1 -1
drivers/acpi/pci_irq.c
··· 175 175 * configure the IRQ assigned to this slot|dev|pin. The 'source_index' 176 176 * indicates which resource descriptor in the resource template (of 177 177 * the link device) this interrupt is allocated from. 178 - * 178 + * 179 179 * NOTE: Don't query the Link Device for IRQ information at this time 180 180 * because Link Device enumeration may not have occurred yet 181 181 * (e.g. exists somewhere 'below' this _PRT entry in the ACPI
+6 -6
drivers/acpi/pci_link.c
··· 6 6 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 7 7 * Copyright (C) 2002 Dominik Brodowski <devel@brodo.de> 8 8 * 9 - * TBD: 10 - * 1. Support more than one IRQ resource entry per link device (index). 9 + * TBD: 10 + * 1. Support more than one IRQ resource entry per link device (index). 11 11 * 2. Implement start/stop mechanism and use ACPI Bus Driver facilities 12 12 * for IRQ management (e.g. start()->_SRS). 13 13 */ ··· 249 249 } 250 250 } 251 251 252 - /* 253 - * Query and parse _CRS to get the current IRQ assignment. 252 + /* 253 + * Query and parse _CRS to get the current IRQ assignment. 254 254 */ 255 255 256 256 status = acpi_walk_resources(link->device->handle, METHOD_NAME__CRS, ··· 396 396 /* 397 397 * "acpi_irq_balance" (default in APIC mode) enables ACPI to use PIC Interrupt 398 398 * Link Devices to move the PIRQs around to minimize sharing. 399 - * 399 + * 400 400 * "acpi_irq_nobalance" (default in PIC mode) tells ACPI not to move any PIC IRQs 401 401 * that the BIOS has already set to active. This is necessary because 402 402 * ACPI has no automatic means of knowing what ISA IRQs are used. Note that ··· 414 414 * 415 415 * Note that PCI IRQ routers have a list of possible IRQs, 416 416 * which may not include the IRQs this table says are available. 417 - * 417 + * 418 418 * Since this heuristic can't tell the difference between a link 419 419 * that no device will attach to, vs. a link which may be shared 420 420 * by multiple active devices -- it is not optimal.
+1 -1
drivers/acpi/pci_mcfg.c
··· 173 173 { 174 174 if (!memcmp(f->oem_id, mcfg_oem_id, ACPI_OEM_ID_SIZE) && 175 175 !memcmp(f->oem_table_id, mcfg_oem_table_id, 176 - ACPI_OEM_TABLE_ID_SIZE) && 176 + ACPI_OEM_TABLE_ID_SIZE) && 177 177 f->oem_revision == mcfg_oem_revision && 178 178 f->segment == segment && 179 179 resource_contains(&f->bus_range, bus_range))
+3 -3
drivers/acpi/power.c
··· 13 13 * 1. via "Device Specific (D-State) Control" 14 14 * 2. via "Power Resource Control". 15 15 * The code below deals with ACPI Power Resources control. 16 - * 16 + * 17 17 * An ACPI "power resource object" represents a software controllable power 18 18 * plane, clock plane, or other resource depended on by a device. 19 19 * ··· 645 645 * -ENODEV if the execution of either _DSW or _PSW has failed 646 646 */ 647 647 int acpi_device_sleep_wake(struct acpi_device *dev, 648 - int enable, int sleep_state, int dev_state) 648 + int enable, int sleep_state, int dev_state) 649 649 { 650 650 union acpi_object in_arg[3]; 651 651 struct acpi_object_list arg_list = { 3, in_arg }; ··· 690 690 691 691 /* 692 692 * Prepare a wakeup device, two steps (Ref ACPI 2.0:P229): 693 - * 1. Power on the power resources required for the wakeup device 693 + * 1. Power on the power resources required for the wakeup device 694 694 * 2. Execute _DSW (Device Sleep Wake) or (deprecated in ACPI 3.0) _PSW (Power 695 695 * State Wake) for the device, if present 696 696 */
+3 -3
drivers/acpi/processor_perflib.c
··· 354 354 (u32) px->control, (u32) px->status)); 355 355 356 356 /* 357 - * Check that ACPI's u64 MHz will be valid as u32 KHz in cpufreq 357 + * Check that ACPI's u64 MHz will be valid as u32 KHz in cpufreq 358 358 */ 359 359 if (!px->core_frequency || 360 360 ((u32)(px->core_frequency * 1000) != ··· 627 627 goto err_ret; 628 628 629 629 /* 630 - * Now that we have _PSD data from all CPUs, lets setup P-state 630 + * Now that we have _PSD data from all CPUs, lets setup P-state 631 631 * domain info. 632 632 */ 633 633 for_each_possible_cpu(i) { ··· 693 693 if (match_pdomain->domain != pdomain->domain) 694 694 continue; 695 695 696 - match_pr->performance->shared_type = 696 + match_pr->performance->shared_type = 697 697 pr->performance->shared_type; 698 698 cpumask_copy(match_pr->performance->shared_cpu_map, 699 699 pr->performance->shared_cpu_map);
+1 -1
drivers/acpi/sbs.c
··· 366 366 state_readers[i].mode, 367 367 ACPI_SBS_BATTERY, 368 368 state_readers[i].command, 369 - (u8 *)battery + 369 + (u8 *)battery + 370 370 state_readers[i].offset); 371 371 if (result) 372 372 goto end;
+1 -1
drivers/acpi/sbshc.c
··· 176 176 EXPORT_SYMBOL_GPL(acpi_smbus_write); 177 177 178 178 int acpi_smbus_register_callback(struct acpi_smb_hc *hc, 179 - smbus_alarm_callback callback, void *context) 179 + smbus_alarm_callback callback, void *context) 180 180 { 181 181 mutex_lock(&hc->lock); 182 182 hc->callback = callback;
+3 -3
drivers/acpi/sbshc.h
··· 24 24 typedef void (*smbus_alarm_callback)(void *context); 25 25 26 26 extern int acpi_smbus_read(struct acpi_smb_hc *hc, u8 protocol, u8 address, 27 - u8 command, u8 * data); 27 + u8 command, u8 *data); 28 28 extern int acpi_smbus_write(struct acpi_smb_hc *hc, u8 protocol, u8 slave_address, 29 - u8 command, u8 * data, u8 length); 29 + u8 command, u8 *data, u8 length); 30 30 extern int acpi_smbus_register_callback(struct acpi_smb_hc *hc, 31 - smbus_alarm_callback callback, void *context); 31 + smbus_alarm_callback callback, void *context); 32 32 extern int acpi_smbus_unregister_callback(struct acpi_smb_hc *hc);
+1 -1
drivers/acpi/scan.c
··· 1453 1453 } 1454 1454 1455 1455 /** 1456 - * acpi_dma_configure - Set-up DMA configuration for the device. 1456 + * acpi_dma_configure_id - Set-up DMA configuration for the device. 1457 1457 * @dev: The pointer to the device 1458 1458 * @attr: device dma attributes 1459 1459 * @input_id: input device id const value pointer
+8 -8
drivers/acpi/video_detect.c
··· 178 178 DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X201s"), 179 179 }, 180 180 }, 181 - { 182 - .callback = video_detect_force_video, 183 - .ident = "ThinkPad X201T", 184 - .matches = { 185 - DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), 186 - DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X201T"), 187 - }, 188 - }, 181 + { 182 + .callback = video_detect_force_video, 183 + .ident = "ThinkPad X201T", 184 + .matches = { 185 + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), 186 + DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X201T"), 187 + }, 188 + }, 189 189 190 190 /* The native backlight controls do not work on some older machines */ 191 191 {
+2 -2
drivers/acpi/wakeup.c
··· 44 44 if (!dev->wakeup.flags.valid 45 45 || sleep_state > (u32) dev->wakeup.sleep_state 46 46 || !(device_may_wakeup(&dev->dev) 47 - || dev->wakeup.prepare_count)) 47 + || dev->wakeup.prepare_count)) 48 48 continue; 49 49 50 50 if (device_may_wakeup(&dev->dev)) ··· 69 69 if (!dev->wakeup.flags.valid 70 70 || sleep_state > (u32) dev->wakeup.sleep_state 71 71 || !(device_may_wakeup(&dev->dev) 72 - || dev->wakeup.prepare_count)) 72 + || dev->wakeup.prepare_count)) 73 73 continue; 74 74 75 75 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number,