[OEM-5.10/OEM-5.13] [PATCH 13/17] ACPI: PM: s2idle: Use correct revision id
Kai-Heng Feng
kai.heng.feng at canonical.com
Tue Jun 22 17:23:48 UTC 2021
From: Pratik Vishwakarma <Pratik.Vishwakarma at amd.com>
BugLink: https://bugs.launchpad.net/bugs/1932577
AMD spec mentions only revision 0. With this change,
device constraint list is populated properly.
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma at amd.com>
Tested-by: Julian Sikorski <belegdol at gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki at intel.com>
(cherry picked from commit 904d4a6c074b9d69b673c7cd7d66f55cfa7610ea linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng at canonical.com>
---
drivers/acpi/x86/s2idle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/x86/s2idle.c b/drivers/acpi/x86/s2idle.c
index 2d7ddb8a8cb6..da27c1c45c9f 100644
--- a/drivers/acpi/x86/s2idle.c
+++ b/drivers/acpi/x86/s2idle.c
@@ -96,7 +96,7 @@ static void lpi_device_get_constraints_amd(void)
int i, j, k;
out_obj = acpi_evaluate_dsm_typed(lps0_device_handle, &lps0_dsm_guid,
- 1, ACPI_LPS0_GET_DEVICE_CONSTRAINTS,
+ rev_id, ACPI_LPS0_GET_DEVICE_CONSTRAINTS,
NULL, ACPI_TYPE_PACKAGE);
if (!out_obj)
--
2.31.1
More information about the kernel-team
mailing list