]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86/intel/pmc: Refactor platform resume functions to use cnl_resume()
authorDavid E. Box <david.e.box@linux.intel.com>
Thu, 17 Oct 2024 21:04:37 +0000 (14:04 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 22 Oct 2024 08:50:51 +0000 (11:50 +0300)
Several platform resume functions currently call pmc_core_send_ltr_ignore()
and pmc_core_resume_common(), both of which are already called by
cnl_resume(). Simplify the code by having these functions call cnl_resume()
directly.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20241017210439.3449324-1-david.e.box@linux.intel.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/intel/pmc/arl.c
drivers/platform/x86/intel/pmc/lnl.c
drivers/platform/x86/intel/pmc/mtl.c

index e10527c4e3e0d52805fc7da486756fb46fc942e6..05dec4f5019f3b19df42cc9c526d232ec91be27a 100644 (file)
@@ -687,9 +687,8 @@ static void arl_d3_fixup(void)
 static int arl_resume(struct pmc_dev *pmcdev)
 {
        arl_d3_fixup();
-       pmc_core_send_ltr_ignore(pmcdev, 3, 0);
 
-       return pmc_core_resume_common(pmcdev);
+       return cnl_resume(pmcdev);
 }
 
 int arl_core_init(struct pmc_dev *pmcdev)
index e7a8077d1a3e12957cd7b53a3964ccfd3a83eebb..be029f12cdf4031ba72b9904c6927ae4d8a8f8a3 100644 (file)
@@ -546,9 +546,8 @@ static void lnl_d3_fixup(void)
 static int lnl_resume(struct pmc_dev *pmcdev)
 {
        lnl_d3_fixup();
-       pmc_core_send_ltr_ignore(pmcdev, 3, 0);
 
-       return pmc_core_resume_common(pmcdev);
+       return cnl_resume(pmcdev);
 }
 
 int lnl_core_init(struct pmc_dev *pmcdev)
index 91f2fa728f5c88b5b0e56a77f386d5339e39ad61..fc6a89b8979ff046ff41eff03302a4abafdce130 100644 (file)
@@ -988,9 +988,8 @@ static void mtl_d3_fixup(void)
 static int mtl_resume(struct pmc_dev *pmcdev)
 {
        mtl_d3_fixup();
-       pmc_core_send_ltr_ignore(pmcdev, 3, 0);
 
-       return pmc_core_resume_common(pmcdev);
+       return cnl_resume(pmcdev);
 }
 
 int mtl_core_init(struct pmc_dev *pmcdev)