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

Merge tag 'acpi-5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull ACPI fixes from Rafael Wysocki:
"These fix recent regression in the APEI code and initialization issue
in the ACPI fan driver.

Specifics:

- Make the APEI code avoid attempts to obtain logical addresses for
registers located in the I/O address space to fix initialization
issues (Aili Yao)

- Fix sysfs attribute initialization in the ACPI fan driver (Guenter
Roeck)"

* tag 'acpi-5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
ACPI, APEI, Fix error return value in apei_map_generic_address()
ACPI: fan: Initialize performance state sysfs attribute

+5
+4
drivers/acpi/apei/apei-base.c
··· 633 633 if (rc) 634 634 return rc; 635 635 636 + /* IO space doesn't need mapping */ 637 + if (reg->space_id == ACPI_ADR_SPACE_SYSTEM_IO) 638 + return 0; 639 + 636 640 if (!acpi_os_map_generic_address(reg)) 637 641 return -ENXIO; 638 642
+1
drivers/acpi/fan.c
··· 352 352 struct acpi_fan_fps *fps = &fan->fps[i]; 353 353 354 354 snprintf(fps->name, ACPI_FPS_NAME_LEN, "state%d", i); 355 + sysfs_attr_init(&fps->dev_attr.attr); 355 356 fps->dev_attr.show = show_state; 356 357 fps->dev_attr.store = NULL; 357 358 fps->dev_attr.attr.name = fps->name;