summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/amd/pmc/pmc-quirks.c
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2023-12-12 07:50:05 +0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2023-12-18 16:08:17 +0300
commitb614a4bd73efeddc2b20d9e6deb6c2710373802b (patch)
tree88bb2cc4de232188f81d6f161affea3ebbcea4fa /drivers/platform/x86/amd/pmc/pmc-quirks.c
parent2d53c0ab61e62302d7b62d660fe76de2bff6bf45 (diff)
downloadlinux-b614a4bd73efeddc2b20d9e6deb6c2710373802b.tar.xz
platform/x86/amd/pmc: Move keyboard wakeup disablement detection to pmc-quirks
Other platforms may need to disable keyboard wakeup besides Cezanne, so move the detection into amd_pmc_quirks_init() where it may be applied to multiple platforms. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://lore.kernel.org/r/20231212045006.97581-4-mario.limonciello@amd.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/amd/pmc/pmc-quirks.c')
-rw-r--r--drivers/platform/x86/amd/pmc/pmc-quirks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/platform/x86/amd/pmc/pmc-quirks.c b/drivers/platform/x86/amd/pmc/pmc-quirks.c
index 6bbffb081053..c32046dfa960 100644
--- a/drivers/platform/x86/amd/pmc/pmc-quirks.c
+++ b/drivers/platform/x86/amd/pmc/pmc-quirks.c
@@ -235,6 +235,9 @@ void amd_pmc_quirks_init(struct amd_pmc_dev *dev)
{
const struct dmi_system_id *dmi_id;
+ if (dev->cpu_id == AMD_CPU_ID_CZN)
+ dev->disable_8042_wakeup = true;
+
dmi_id = dmi_first_match(fwbug_list);
if (!dmi_id)
return;