Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2566772yba; Mon, 6 May 2019 08:06:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZbqc42AVIei2KIwurJpUaqXlrkZ9xsN/b596iTPdddMw6bOjGjWSITTkLL6pH9dnGy3/F X-Received: by 2002:a63:fe4e:: with SMTP id x14mr32109804pgj.411.1557155190256; Mon, 06 May 2019 08:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557155190; cv=none; d=google.com; s=arc-20160816; b=Gadz13AfAPdoe7AwGiG3L0q28N5AcjdCTp1ht0WEa468cGpEOmQcSWhhVIrsqIZyo/ axlFtVFOqHAtkrGHa5vTuGOp4iB8w2q2StpS8PksCOFbnjOIXpwidA7sJLlHPQs9h0Su 6QalmkXmNmY0NZ/QmBLUkwGdtzT8z9th+OAhsaGEVbRHpcc+IJig9YlJHXjEQTkainOZ fyUaZWl4NhW/9lgE6AYxIe5fbWQmSCpZxPq/vK5/MHzcuskyvmDjDMR9hxA2dBoLdKRM Ab5/hewdz+4dPTcq6YJFwpv4XSeBsTwdYDIkNcaDzR/J/IVYtScGF/CFBuydW9LVJwk5 XpGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=R5oPPNqSoDNS2vH/uYkAM9ajX265+4KlnBvCXNt+T+E=; b=bg84ce7scmbeZxzwVVMS/NTSA+K1FP6OwnR0no6RCZ0ngtb5DWfCch7g+P7D4bJFO1 GAIHzVFTSEQwMQNiSHM9oVo6Y0qKqQSWvb2iAuYJldsPHAT516pRYHfYyChieKxpKbfa zy4lkmv82sXYhMoPxwUccJl8pWykImsc6aJwt3i7qyLMpjqFOVOaQZiwSdIB/WFGJo24 xBSvSd/VeKLTkEBAd4Hi/RU+HAwcURyXNoVwIVSS03eEZQXPjTFSPwyLdsdx+h8rAmiD IrmlOmJoX4fIHTPchhN/OF/2doYecToL9tHtccj2o/8ac6cFEbhcnusdP9C8Rfp0IxPr r1pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K4nsZ6lg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si14116598pgj.278.2019.05.06.08.06.07; Mon, 06 May 2019 08:06:30 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=K4nsZ6lg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727701AbfEFOjA (ORCPT + 99 others); Mon, 6 May 2019 10:39:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:60290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbfEFOi6 (ORCPT ); Mon, 6 May 2019 10:38:58 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 24C0421479; Mon, 6 May 2019 14:38:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153537; bh=c/XoGLNUgHSYgn/xU/oltXrqsx3cVeB7liKulxGLQy0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K4nsZ6lgaKdjuBM+wSLReSN2Moq74huEotWjn1yXD9jG/euHmhJFNIr/OcXKNoXr/ 1LHW2u40KjoPhJjg83PDJRyUjxc9hzRmKn9FqbcfWd2XPzPegoVf/iFx2VjcqBVR44 5Ak9akEhMlEwUu3G1EMGldoG08WcBgtmEb6dISFQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "David E. Box" , Srinivas Pandruvada , "David E. Box" , Rajneesh Bhardwaj , Andy Shevchenko Subject: [PATCH 5.0 105/122] platform/x86: intel_pmc_core: Handle CFL regmap properly Date: Mon, 6 May 2019 16:32:43 +0200 Message-Id: <20190506143104.089681384@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143054.670334917@linuxfoundation.org> References: <20190506143054.670334917@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rajneesh Bhardwaj commit e50af8332785355de3cb40d9f5e8c45dbfc86f53 upstream. 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 Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/intel_pmc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/platform/x86/intel_pmc_core.c +++ b/drivers/platform/x86/intel_pmc_core.c @@ -802,7 +802,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))