Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp247296imj; Wed, 13 Feb 2019 07:42:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IbIApbIeA1zW/QB1VQFeAPdTzirBEslPKd8yZn64Gb5SfKI+v4VW6JzrBsH850OTYaGX6xt X-Received: by 2002:a17:902:bd4a:: with SMTP id b10mr1154015plx.232.1550072526798; Wed, 13 Feb 2019 07:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550072526; cv=none; d=google.com; s=arc-20160816; b=LX4znYVndRsX6HKwlkl0qdato7z0FdIBF3GVFR7Upxyyss+gmsDnDVITMYW0wzJgjs NhP72bbH5JCdyGYZTovaABB1E0MAlgUe48l0wsq+CP+32e+32ihd/PIemozY3FAr9CU+ FzejV6fsjtWNIFFxsld6QEj66D93ee38u5nkegE2XdJs4gT+SzQz8jtGm8kFPfURar/k 1t2CFDVJWag58qE4JW2GzPMfZi4oT2TBO8Kag23sCADS++ocY3n59diBXl3t9E/m4NVm 7EwGGbYC0K0+6BjbXOWwHXPuJyROhkaP/tqNWWm59YtOZT3vnq0EAbGHgJoWmKhSKPmT MrxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=yyXjSXvU5l0dkztJWKyyI/6Te+Apx5fFJBXcHx4KuL4=; b=tfpjZYsvIwaocH91elR8pMmd/smSzB3FlmgUMWbMgGFpl/NBTDGV99tLKe4FErUZeR PNb3BSdYl2mEtr20bXwutSMnafRcPEASiWMneaEYoF0acupeKekrckbFkDkqh3bak9eu iqHEgYv3uGnG+kan7HlrpZPTYmDCKP5BTgg8BeqCp5QmA+Mqe4zsx72q0X1xJ2cMUeEk 52/Wf4vC+gw91StJ7dt4X+XtjJcxz2yP9272iH1kquSefKmJ64GSgHWn2CmuRYeXdMK8 cBjDBZyVigUHq6AKUBDZNfz9BkQkeyzY848BHv8riMFn1RfGV5dMRnuXa0K9pbqThU4G ln9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d37si17284038plb.140.2019.02.13.07.41.50; Wed, 13 Feb 2019 07:42:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2391440AbfBMPH5 (ORCPT + 99 others); Wed, 13 Feb 2019 10:07:57 -0500 Received: from mga06.intel.com ([134.134.136.31]:11815 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfBMPH4 (ORCPT ); Wed, 13 Feb 2019 10:07:56 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2019 07:07:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,365,1544515200"; d="scan'208";a="299437263" Received: from rajneesh-desk.iind.intel.com ([10.223.86.34]) by orsmga005.jf.intel.com with ESMTP; 13 Feb 2019 07:07:53 -0800 From: Rajneesh Bhardwaj To: platform-driver-x86@vger.kernel.org Cc: dvhart@infradead.org, andy@infradead.org, linux-kernel@vger.kernel.org, Rajneesh Bhardwaj , "David E. Box" , Srinivas Pandruvada Subject: [PATCH v2 01/10] platform/x86: intel_pmc_core: Handle CFL regmap properly Date: Wed, 13 Feb 2019 20:38:01 +0530 Message-Id: <20190213150810.32750-2-rajneesh.bhardwaj@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190213150810.32750-1-rajneesh.bhardwaj@linux.intel.com> References: <20190213150810.32750-1-rajneesh.bhardwaj@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Only Coffeelake should use Cannonlake regmap other than Cannonlake platform. This allows Coffeelake special handling only when there is no matching PCI device and default reg map selected as per CPUID is for Sunrisepoint PCH. This change is needed to enable support for newer SoCs such as Icelake. Cc: "David E. Box" Cc: Srinivas Pandruvada Fixes: 661405bd817b ("platform/x86: intel_pmc_core: Special case for Coffeelake") Acked-by: "David E. Box" Signed-off-by: Rajneesh Bhardwaj --- drivers/platform/x86/intel_pmc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c index 22dbf115782e..37f605da9333 100644 --- a/drivers/platform/x86/intel_pmc_core.c +++ b/drivers/platform/x86/intel_pmc_core.c @@ -768,7 +768,7 @@ static int __init pmc_core_probe(void) * Sunrisepoint PCH regmap can't be used. Use Cannonlake PCH regmap * in this case. */ - if (!pci_dev_present(pmc_pci_ids)) + if (pmcdev->map == &spt_reg_map && !pci_dev_present(pmc_pci_ids)) pmcdev->map = &cnp_reg_map; if (lpit_read_residency_count_address(&slp_s0_addr)) -- 2.17.1