From 533eb44bcd6e4f3c1496ae526d9b7a0afe4bf411 Mon Sep 17 00:00:00 2001 From: "David E. Box" Date: Fri, 22 Dec 2023 19:25:47 -0800 Subject: [PATCH] platform/x86/intel/pmc/lnl: Add GBE LTR ignore during suspend mainline:6f9fac5535ba2038063c656f0afb496d7f87bcc1 severity: Moderate upstream commit 6f9fac5535ba2038063c656f0afb496d7f87bcc1 ("platform/x86/intel/pmc/lnl: Add GBE LTR ignore during suspend") Add the GBE LTR ignore suspend time fix for Lunar Lake. Fixes: 119652b855e6 ("platform/x86/intel/pmc: Add Lunar Lake M support to intel_pmc_core driver") Intel-SIG: commit 6f9fac5535ba ("platform/x86/intel/pmc/lnl: Add GBE LTR ignore during suspend") Signed-off-by: David E. Box Link: https://lore.kernel.org/r/20231223032548.1680738-8-david.e.box@linux.intel.com Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede [ Quanxian Wang: amend commit log ] Signed-off-by: Quanxian Wang --- drivers/platform/x86/intel/pmc/lnl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/platform/x86/intel/pmc/lnl.c b/drivers/platform/x86/intel/pmc/lnl.c index 842f9cca03921..abad17cdd3d78 100644 --- a/drivers/platform/x86/intel/pmc/lnl.c +++ b/drivers/platform/x86/intel/pmc/lnl.c @@ -509,6 +509,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); } @@ -521,6 +523,7 @@ int lnl_core_init(struct pmc_dev *pmcdev) lnl_d3_fixup(); + pmcdev->suspend = cnl_suspend; pmcdev->resume = lnl_resume; pmcdev->regmap_list = lnl_pmc_info_list; ret = pmc_core_ssram_init(pmcdev, func);