linux/drivers/acpi/dptf
Srinivas Pandruvada 41a8457f3f ACPI: DPTF: Fix reading of attributes
The current assumption that methods to read PCH FIVR attributes will
return integer, is not correct. There is no good way to return integer
as negative numbers are also valid.

These read methods return a package of integers. The first integer returns
status, which is 0 on success and any other value for failure. When the
returned status is zero, then the second integer returns the actual value.

This change fixes this issue by replacing acpi_evaluate_integer() with
acpi_evaluate_object() and use acpi_extract_package() to extract results.

Fixes: 2ce6324ead ("ACPI: DPTF: Add PCH FIVR participant driver")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: 5.10+ <stable@vger.kernel.org> # 5.10+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2021-07-28 18:39:41 +02:00
..
dptf_pch_fivr.c ACPI: DPTF: Fix reading of attributes 2021-07-28 18:39:41 +02:00
dptf_power.c ACPI: DPTF: Support Alder Lake 2020-11-10 18:52:51 +01:00
int340x_thermal.c ACPI: DPTF: Add battery participant for Intel SoCs 2021-05-12 15:48:54 +02:00
Kconfig ACPI: DPTF: Add ACPI_DPTF Kconfig menu 2020-10-16 18:16:39 +02:00
Makefile ACPI: DPTF: Add PCH FIVR participant driver 2020-09-18 18:13:56 +02:00