[GIT PULL] More ACPI updates for v6.1-rc1

From: Rafael J. Wysocki
Date: Mon Oct 10 2022 - 13:45:21 EST


Hi Linus,

Please pull from the tag

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
acpi-6.1-rc1-2

with top-most commit 056a81549c2722f0e7a9cceb7a98728eb1d67434

Merge branches 'acpi-apei', 'acpi-wakeup', 'acpi-reboot' and 'acpi-thermal'

on top of commit 9388076b4cedf199624173b4fcd3f208c02632d6

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

to receive more ACPI updates for 6.1-rc1.

These fix 2 issues, in APEI and in the int3472 driver, clean up the
ACPI thermal driver, add ACPI support for non-GPE system wakeup events
and make the system reboot code use the S5 (system off) state by default.

Specifics:

- Fix ACPI device object reference counting in (recently updated)
skl_int3472_fill_clk_pdata() (Andy Shevchenko).

- Fix a memory leak in APEI by avoiding to add a task_work to kernel
threads running when an asynchronous error is detected (Shuai Xue).

- Add ACPI support for handling system wakeups via GPIO wake capable
IRQs in addition to GPEs (Raul E Rangel).

- Make the system reboot code put ACPI-enabled systems into the S5
(system off) state which is necessary for some platforms to work as
expected (Kai-Heng Feng).

- Make the white space usage in the ACPI thermal driver more consistent
and drop redundant code from it (Rafael Wysocki).

Thanks!


---------------

Andy Shevchenko (1):
platform/x86: int3472: Don't leak reference on error

Kai-Heng Feng (2):
kernel/reboot: Add SYS_OFF_MODE_RESTART_PREPARE mode
PM: ACPI: reboot: Reinstate S5 for reboot

Rafael J. Wysocki (3):
ACPI: thermal: Use white space more consistently
ACPI: thermal: Drop redundant parens from expressions
ACPI: thermal: Drop some redundant code

Raul E Rangel (4):
gpiolib: acpi: Add wake_capable variants of acpi_dev_gpio_irq_get
ACPI: resources: Add wake_capable parameter to acpi_dev_irq_flags
i2c: acpi: Use ACPI wake capability bit to set wake_irq
ACPI: PM: Take wake IRQ into consideration when entering suspend-to-idle

Shuai Xue (1):
ACPI: APEI: do not add task_work to kernel thread to avoid memory leak

---------------

drivers/acpi/apei/ghes.c | 2 +-
drivers/acpi/device_pm.c | 15 ++
drivers/acpi/irq.c | 8 +-
drivers/acpi/resource.c | 16 +-
drivers/acpi/sleep.c | 8 +
drivers/acpi/thermal.c | 211 +++++++++++++-------------
drivers/gpio/gpiolib-acpi.c | 15 +-
drivers/gpio/gpiolib-acpi.h | 2 +
drivers/i2c/i2c-core-acpi.c | 40 +++--
drivers/i2c/i2c-core-base.c | 6 +-
drivers/i2c/i2c-core.h | 4 +-
drivers/platform/x86/intel/int3472/tps68470.c | 6 +-
drivers/pnp/pnpacpi/rsparser.c | 7 +-
include/linux/acpi.h | 23 ++-
include/linux/ioport.h | 3 +-
include/linux/reboot.h | 8 +
kernel/reboot.c | 17 +++
17 files changed, 245 insertions(+), 146 deletions(-)