Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1548486pxv; Fri, 16 Jul 2021 11:44:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY5oW8DCd3aXHUeZd/8dRrHJvfnisj6UBbQNY8v8BNx+JuGcQYeRkm0ICwQ6tneGjeRNpR X-Received: by 2002:a50:fd1a:: with SMTP id i26mr16388256eds.372.1626461049860; Fri, 16 Jul 2021 11:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626461049; cv=none; d=google.com; s=arc-20160816; b=CmWaqWiptclL6SS9TZl+RJtBNJYFOx3RO5EdCuV457rwRbVh73SKjWRxdkz9lK3W3v xK/enK4A67Oq183rIww6hQRAPq3YY8zGZLz+BueUoI6qKygm+MWcOQ2zVuJUKAuW3t5v 6eVwtRZIbDzq7TPVEGZmuMYhuD8L4HhDrXGuiksbAcIYIzhQy5NAqhkyCv2jozKf0yQL 6CmrHDUukJX+qC3KsXLn54MayyA4hjKNoqNPkVbkxeSOqKVVpv9V5JMAeInE9N7fb89I /46DmLF+R3C5BWROCH/TZMloCt2IplQTRCTz2HqoPiTl0sZi1JiCeO90x0RTkXMi0qWt LY6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=c5seZwyJFpokR6zJKuP3p8bZ8hRSYG9yNh53oMRo9sE=; b=fwcjuuoDSOFpFhTP6Xt0p6yH3XxvgxRDywbaQObtQhtnr2/hMe6UJgGKst2u+4G0Sm UkxX/DrOzBJYVuqeYJf83kXvR2wq2d/EvMfkMApT8E+XBOuqty0cFrHCU4MEyC5oD/e7 jGiE2M69Yv42pGB8hgRjgUZ/0aXa6pL6loGfZ+6t84ZdG/YhqDER2VkNdh/Ok/NTs9ga LteUQ4qNoPoFqeEqzxoos1KfJKdMYwRnoMmL2+IJ1U75iRXKTb2UMhYsIpc/Jj+0zgzd oM7DADLhglnZAHvuCNduqukKiZpyiX/a9I/9oBa6/l8FMtXCZuP8m34r7BYUMZfAi8ea Ggyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si12010483eds.419.2021.07.16.11.43.46; Fri, 16 Jul 2021 11:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232340AbhGPSot (ORCPT + 99 others); Fri, 16 Jul 2021 14:44:49 -0400 Received: from mga17.intel.com ([192.55.52.151]:56665 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232214AbhGPSop (ORCPT ); Fri, 16 Jul 2021 14:44:45 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10047"; a="191144883" X-IronPort-AV: E=Sophos;i="5.84,245,1620716400"; d="scan'208";a="191144883" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2021 11:41:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,245,1620716400"; d="scan'208";a="460843499" Received: from otcpl-manager.jf.intel.com (HELO localhost.localdomain) ([10.54.39.234]) by orsmga008.jf.intel.com with ESMTP; 16 Jul 2021 11:41:49 -0700 From: Gayatri Kammela To: platform-driver-x86@vger.kernel.org Cc: mgross@linux.intel.com, hdegoede@redhat.com, irenic.rajneesh@gmail.com, andriy.shevchenko@linux.intel.com, vicamo.yang@canonical.com, srinivas.pandruvada@intel.com, david.e.box@intel.com, linux-kernel@vger.kernel.org, tamar.mashiah@intel.com, gregkh@linuxfoundation.org, rajatja@google.com, Shyam-sundar.S-k@amd.com, Alexander.Deucher@amd.com, mlimonci@amd.com, "David E. Box" , Andy Shevchenko Subject: [PATCH v5 5/5] platform/x86/intel: pmc/core: Add GBE Package C10 fix for Alder Lake PCH Date: Fri, 16 Jul 2021 11:38:37 -0700 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "David E. Box" 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. Cc: Srinivas Pandruvada Cc: Andy Shevchenko Tested-by: You-Sheng Yang Acked-by: Rajneesh Bhardwaj Reviewed-by: Hans de Goede Reviewed-by: Andy Shevchenko Signed-off-by: David E. Box --- drivers/platform/x86/intel/pmc/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/intel/pmc/core.c b/drivers/platform/x86/intel/pmc/core.c index e645ede591d8..7c4bf7d22fd5 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); } -- 2.25.1