aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmc/adl.c
diff options
context:
space:
mode:
authorXi Pardee <[email protected]>2023-11-29 22:21:23 +0000
committerHans de Goede <[email protected]>2023-12-04 13:53:43 +0000
commit2e35e3aa9f10ea430468207c3dd9dc33ba1afc33 (patch)
tree0f2882f2fc74792cf14a97bdf0f68cbf381fa728 /drivers/platform/x86/intel/pmc/adl.c
parentplatform/x86/intel/pmt: telemetry: Export API to read telemetry (diff)
downloadkernel-2e35e3aa9f10ea430468207c3dd9dc33ba1afc33.tar.gz
kernel-2e35e3aa9f10ea430468207c3dd9dc33ba1afc33.zip
platform/x86:intel/pmc: Call pmc_get_low_power_modes from platform init
In order to setup a table of low power mode requirements for Meteor Lake, pmc_core_get_low_power_modes() will need to be run from platform init code so that the enabled modes are known, allowing the use of the pmc_for_each_mode helper. Make the function global and call it from the platform init code. Signed-off-by: Xi Pardee <[email protected]> Signed-off-by: David E. Box <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmc/adl.c')
-rw-r--r--drivers/platform/x86/intel/pmc/adl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel/pmc/adl.c b/drivers/platform/x86/intel/pmc/adl.c
index 5006008e01be..64c492391ede 100644
--- a/drivers/platform/x86/intel/pmc/adl.c
+++ b/drivers/platform/x86/intel/pmc/adl.c
@@ -319,6 +319,8 @@ int adl_core_init(struct pmc_dev *pmcdev)
if (ret)
return ret;
+ pmc_core_get_low_power_modes(pmcdev);
+
/* Due to a hardware limitation, the GBE LTR blocks PC10
* when a cable is attached. Tell the PMC to ignore it.
*/