platform/x86/amd/pmc: Move keyboard wakeup disablement detection to pmc-quirks
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 12 Dec 2023 04:50:05 +0000 (22:50 -0600)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 18 Dec 2023 13:08:17 +0000 (15:08 +0200)
commitb614a4bd73efeddc2b20d9e6deb6c2710373802b
tree88bb2cc4de232188f81d6f161affea3ebbcea4fa
parent2d53c0ab61e62302d7b62d660fe76de2bff6bf45
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>
drivers/platform/x86/amd/pmc/pmc-quirks.c
drivers/platform/x86/amd/pmc/pmc.c
drivers/platform/x86/amd/pmc/pmc.h