linux-surface/patches/5.14/0009-amd-s0ix.patch
Maximilian Luz 9dc59ad56e
Update v5.14 patches
Changes:
 - Fixes for AMD pinctrl wakeup (https://github.com/linux-surface/kernel/pull/104).
   This should allow the AMD versions of the SL3 and SL4 to wake up by
   opening the lid.
 - Rebase onto v5.14.6

Links:
 - kernel: e48e5b7abb
2021-09-18 16:34:45 +02:00

34 lines
1 KiB
Diff

From 675beeaf1592fc9bf4a52471dde3e133121e07ad Mon Sep 17 00:00:00 2001
From: Sachi King <nakato@nakato.io>
Date: Sat, 29 May 2021 22:27:25 +1000
Subject: [PATCH] platform/x86: amd-pmc: Add device HID for AMD PMC
The Surface Laptop 4 appears to have used AMD0005 for the PMC instead of
the AMDI0005 which would match the ACPI ID Registry.
AMD appears to have previously used "AMD" in a number of IDs in the past,
and AMD is not allocated to any other entity as an ID, so adding this ID
should not cause any harm.
Signed-off-by: Sachi King <nakato@nakato.io>
Patchset: amd-s0ix
---
drivers/platform/x86/amd-pmc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/amd-pmc.c b/drivers/platform/x86/amd-pmc.c
index 3481479a2942..1f4a1cd1f58d 100644
--- a/drivers/platform/x86/amd-pmc.c
+++ b/drivers/platform/x86/amd-pmc.c
@@ -476,6 +476,7 @@ static const struct acpi_device_id amd_pmc_acpi_ids[] = {
{"AMDI0006", 0},
{"AMDI0007", 0},
{"AMD0004", 0},
+ {"AMD0005", 0},
{ }
};
MODULE_DEVICE_TABLE(acpi, amd_pmc_acpi_ids);
--
2.33.0