Skip to content

Commit fd894f0

Browse files
superm1rafaeljw
authored andcommitted
ACPI: x86: s2idle: If a new AMD _HID is missing assume Rembrandt
A mistake was made that only AMDI0007 was set to rev of "2", but it should have been also set for AMDI008. If an ID is missing from the _HID table, then assume it matches Rembrandt behavior. This implicitly means that if any other behavior changes happen in the future missing IDs must be added to that table. Tested-by: catalin@antebit.com Reviewed-by: Philipp Zabel <philipp.zabel@gmail.com> Tested-by: Philipp Zabel <philipp.zabel@gmail.com> # GA402RJ Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 100a573 commit fd894f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/x86/s2idle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ static int lps0_device_attach(struct acpi_device *adev,
412412
if (dev_id)
413413
data = (const struct amd_lps0_hid_device_data *) dev_id->driver_data;
414414
else
415-
return 0;
415+
data = &amd_rembrandt;
416416
rev_id = data->rev_id;
417417
lps0_dsm_func_mask = validate_dsm(adev->handle,
418418
ACPI_LPS0_DSM_UUID_AMD, rev_id, &lps0_dsm_guid);

0 commit comments

Comments
 (0)