Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp88975ima; Thu, 31 Jan 2019 23:35:38 -0800 (PST) X-Google-Smtp-Source: AHgI3IafHA2j4cbtnRQpYbLpHQ0ZK7CguYvuSfZrbHphsW2sYjNvAaltJS8pfkbtPJgrr+WJNI/n X-Received: by 2002:a63:2263:: with SMTP id t35mr1211389pgm.69.1549006538249; Thu, 31 Jan 2019 23:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549006537; cv=none; d=google.com; s=arc-20160816; b=qWZ7hQqCZkEobtC6FNRGAGXSdd5y26TCbKSgK840rhU+S/1DiNkf0h0gmBa4YhD/z5 wI5hCSTkXiAWP9zKTOVmEOchYhm5pP+cirbLiLNLid3Mrv8opOzZQwRyrYIDy0k2UjOb vkJzZT071KWCMk717hJRH6Qek3cGw+TwxJd8lPNrfDDq/xT1NNnCV7akAx9pMBxKUeGg ptNfrwFVkx0KX9PqLcrmDLTfT/IN8x1UBgSrNHzur+m2QLtRTYDR6tAoDlQlaM7Qke9m UYyUEFVLwCCVXy4eJUfKAMk/wpgavqZtA//XAuJ5FHCvjCdtF9s+6NKJxK/YFQFqVXAc 4nWg== 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=NNb4UiHQaF4d8haN13wpwQlza4qEh8RukHbS+1H/JjShK7UXqotVktZ8hQlnLUkYrN VQaojeusj69+PJO4f4bXe5U0Dsworsvuwq2KRKBLHs1dNWAGBaV6Pd4HOMispDOLid/Q 61KL/l3JLKWSUxQ1m3XFpkKVZsCw4zZrB5JNGRYg10G5vh+SU28T0gsJoVcnrwAqOEao VoW62M0ch0G51d2kuB/Z6GkoRw1QclVil+yIOiMUuYCRqQf6IMI4YdFDwZ2TDSbjVfr2 Tmp4pmhChe7ITTJpvWExBSzbxIo4XuoeDQ2NWvA1wC3UuAxsVYQ++IFusCEAjkw8qDXp jMXw== 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 p15si2196159plq.24.2019.01.31.23.35.22; Thu, 31 Jan 2019 23:35:37 -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 S1727095AbfBAHcf (ORCPT + 99 others); Fri, 1 Feb 2019 02:32:35 -0500 Received: from mga12.intel.com ([192.55.52.136]:57767 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726110AbfBAHcd (ORCPT ); Fri, 1 Feb 2019 02:32:33 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2019 23:32:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,547,1539673200"; d="scan'208";a="114430682" Received: from rajneesh-desk.iind.intel.com ([10.223.86.34]) by orsmga008.jf.intel.com with ESMTP; 31 Jan 2019 23:32:30 -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 01/10] platform/x86: intel_pmc_core: Handle CFL regmap properly Date: Fri, 1 Feb 2019 13:02:25 +0530 Message-Id: <20190201073234.13280-2-rajneesh.bhardwaj@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190201073234.13280-1-rajneesh.bhardwaj@linux.intel.com> References: <20190201073234.13280-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