summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/x86
diff options
context:
space:
mode:
authorPratik Vishwakarma <Pratik.Vishwakarma@amd.com>2021-06-17 18:42:08 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-06-18 18:39:54 +0200
commit904d4a6c074b9d69b673c7cd7d66f55cfa7610ea (patch)
tree43b7bc357029535e3c3f255c64c2dfcbce8a097d /drivers/acpi/x86
parentACPI: power: Use dev_dbg() to print some messages (diff)
downloadlinux-904d4a6c074b9d69b673c7cd7d66f55cfa7610ea.tar.xz
linux-904d4a6c074b9d69b673c7cd7d66f55cfa7610ea.zip
ACPI: PM: s2idle: Use correct revision id
AMD spec mentions only revision 0. With this change, device constraint list is populated properly. Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com> Tested-by: Julian Sikorski <belegdol@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/x86')
-rw-r--r--drivers/acpi/x86/s2idle.c2
1 files changed, 1 insertions, 1 deletions
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)