[GIT PULL] ACPI fixes for v5.13-rc1

From: Rafael J. Wysocki
Date: Thu May 06 2021 - 11:40:04 EST


Hi Linus,

Please pull from the tag

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

with top-most commit 3da53c754502acf74d4d9ba8ac23fc356e6c3d0f

Merge branches 'acpi-pm' and 'acpi-docs'

on top of commit d8f9176b4ece17e831306072678cd9ae49688cf5

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

to receive ACPI fixes for 5.13-rc1.

These revert one recent commit that turned out to be problematic,
address two issues in the ACPI "custom method" interface and
update GPIO properties documentation.

Specifics:

- Revent recent commit related to the handling of ACPI power
resources during initialization, because it turned out to cause
problems to occur on some systems (Rafael Wysocki).

- Fix potential use-after-free and potential memory leak in the
ACPI "custom method" debugfs interface (Mark Langsdorf).

- Update ACPI GPIO properties documentation to cover assumptions
regarding GPIO polarity (Andy Shevchenko).

Thanks!


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

Andy Shevchenko (1):
Documentation: firmware-guide: gpio-properties: Add note to SPI CS case

Mark Langsdorf (2):
ACPI: custom_method: fix potential use-after-free issue
ACPI: custom_method: fix a possible memory leak

Rafael J. Wysocki (1):
Revert "ACPI: scan: Turn off unused power resources during initialization"

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

Documentation/firmware-guide/acpi/gpio-properties.rst | 6 ++++++
drivers/acpi/custom_method.c | 4 +++-
drivers/acpi/internal.h | 1 -
drivers/acpi/power.c | 2 +-
drivers/acpi/scan.c | 2 --
drivers/acpi/sleep.h | 1 +
6 files changed, 11 insertions(+), 5 deletions(-)