diff options
| author | Mario Limonciello <[email protected]> | 2023-12-12 04:50:05 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2023-12-18 13:08:17 +0000 |
| commit | b614a4bd73efeddc2b20d9e6deb6c2710373802b (patch) | |
| tree | 88bb2cc4de232188f81d6f161affea3ebbcea4fa /drivers/platform/x86/amd/pmc/pmc.c | |
| parent | platform/x86/amd/pmc: Only run IRQ1 firmware version check on Cezanne (diff) | |
| download | kernel-b614a4bd73efeddc2b20d9e6deb6c2710373802b.tar.gz kernel-b614a4bd73efeddc2b20d9e6deb6c2710373802b.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/amd/pmc/pmc.c')
| -rw-r--r-- | drivers/platform/x86/amd/pmc/pmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/amd/pmc/pmc.c b/drivers/platform/x86/amd/pmc/pmc.c index 824673a8673e..864c8cc2f8a3 100644 --- a/drivers/platform/x86/amd/pmc/pmc.c +++ b/drivers/platform/x86/amd/pmc/pmc.c @@ -930,7 +930,7 @@ static int amd_pmc_suspend_handler(struct device *dev) { struct amd_pmc_dev *pdev = dev_get_drvdata(dev); - if (pdev->cpu_id == AMD_CPU_ID_CZN && !disable_workarounds) { + if (pdev->disable_8042_wakeup && !disable_workarounds) { int rc = amd_pmc_wa_irq1(pdev); if (rc) { |
