diff mbox series

[4/4,SRU,U/OEM-5.13] UBUNTU: SAUCE: platform/x86: intel_pmc_core: Add GBE Package C10 fix for Alder Lake PCH

Message ID 20210707132217.311805-5-vicamo.yang@canonical.com
State New
Headers show
Series intel_pmc_core: Add Alderlake support to pmc_core driver | expand

Commit Message

You-Sheng Yang July 7, 2021, 1:22 p.m. UTC
From: "David E. Box" <david.e.box@linux.intel.com>

BugLink: https://bugs.launchpad.net/bugs/1934660

Alder PCH uses the same Gigabit Ethernet (GBE) device as Tiger Lake PCH
which cannot achieve PC10 without ignoring the PMC GBE LTR. Add this
work around for Alder Lake PCH as well.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
(cherry picked from
https://patchwork.kernel.org/project/platform-driver-x86/patch/bb897d898c060da4bc20d3d866193c53c6fd4ee1.1625191274.git.gayatri.kammela@intel.com/)
Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
---
 drivers/platform/x86/intel_pmc_core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c
index 27346ff5a924..84b58b557a49 100644
--- a/drivers/platform/x86/intel_pmc_core.c
+++ b/drivers/platform/x86/intel_pmc_core.c
@@ -1983,10 +1983,10 @@  static int pmc_core_probe(struct platform_device *pdev)
 		pmc_core_get_tgl_lpm_reqs(pdev);
 
 	/*
-	 * On TGL, due to a hardware limitation, the GBE LTR blocks PC10 when
-	 * a cable is attached. Tell the PMC to ignore it.
+	 * On TGL and ADL, due to a hardware limitation, the GBE LTR blocks PC10
+	 * when a cable is attached. Tell the PMC to ignore it.
 	 */
-	if (pmcdev->map == &tgl_reg_map) {
+	if (pmcdev->map == &tgl_reg_map || pmcdev->map == &adl_reg_map) {
 		dev_dbg(&pdev->dev, "ignoring GBE LTR\n");
 		pmc_core_send_ltr_ignore(pmcdev, 3);
 	}