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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:51:45 +0000 (11:51 +0100)
commit5b235bbc27069bf1466d747555038b5526c563c4
tree8dd796f4afca90b2454d80f2bbee96bba1c14473
parenta7edb661bb85d9e944ede51554b54f74a07af8d9
platform/x86/amd/pmc: Move keyboard wakeup disablement detection to pmc-quirks

[ Upstream commit b614a4bd73efeddc2b20d9e6deb6c2710373802b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/amd/pmc/pmc-quirks.c
drivers/platform/x86/amd/pmc/pmc.c
drivers/platform/x86/amd/pmc/pmc.h