platform/x86/amd/pmf: Add sysfs to toggle CnQF
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Thu, 22 Sep 2022 13:12:01 +0000 (18:42 +0530)
committerHans de Goede <hdegoede@redhat.com>
Thu, 22 Sep 2022 15:42:53 +0000 (17:42 +0200)
commit3dae5825295d7b3284fc349cd6bfa641f4033e16
tree54240c9027fadd077352fe1a14e2a691c7371658
parent1738061c9ec854db2db76be8bb968f550d9bdddc
platform/x86/amd/pmf: Add sysfs to toggle CnQF

Whether to turn CnQF on/off by default upon driver load would be decided
by a BIOS flag. Add a sysfs node to provide a way to the user whether to
use static slider or CnQF .

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20220922131202.56529-3-Shyam-sundar.S-k@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmf/cnqf.c
drivers/platform/x86/amd/pmf/core.c
drivers/platform/x86/amd/pmf/pmf.h