ACPICA: Validate GPE blocks at init time
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 4 Sep 2020 16:27:27 +0000 (18:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 4 Sep 2020 17:33:54 +0000 (19:33 +0200)
commit84b43284af40742abeb2cdd6998a4084866ba015
treed05fafe190098ba052e58e265193d783aee7115d
parentf75aef392f869018f78cfedf3c320a6b3fcfda6b
ACPICA: Validate GPE blocks at init time

Some of the checks done by acpi_hw_read() and acpi_hw_write(),
which are used for accessing GPE registers, are redundant in the
specific case of GPE registers and the ones that are not redundant
can be done upfront at the initialization time so as to fail the
initialization if they are not passed instead of failing every
access to the affected GPE registers going forward (including
accesses from the SCI interrupt handler).

Modify the GPE blocks initialization code accordingly.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/achware.h
drivers/acpi/acpica/evgpeblk.c
drivers/acpi/acpica/hwvalid.c