aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajneesh Bhardwaj <rajneesh.bhardwaj@linux.intel.com>2019-02-01 02:32:25 -0500
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-02-05 13:28:55 -0500
commite50af8332785355de3cb40d9f5e8c45dbfc86f53 (patch)
tree25623b283d8caa40c4bbc67851ca9fed2d363ef6
parent871f1f2bcb01d205472ddac70d38e8b08e902f15 (diff)
platform/x86: intel_pmc_core: Handle CFL regmap properly
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" <david.e.box@intel.com> Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Fixes: 661405bd817b ("platform/x86: intel_pmc_core: Special case for Coffeelake") Acked-by: "David E. Box" <david.e.box@linux.intel.com> Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r--drivers/platform/x86/intel_pmc_core.c2
1 files changed, 1 insertions, 1 deletions
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)
768 * Sunrisepoint PCH regmap can't be used. Use Cannonlake PCH regmap 768 * Sunrisepoint PCH regmap can't be used. Use Cannonlake PCH regmap
769 * in this case. 769 * in this case.
770 */ 770 */
771 if (!pci_dev_present(pmc_pci_ids)) 771 if (pmcdev->map == &spt_reg_map && !pci_dev_present(pmc_pci_ids))
772 pmcdev->map = &cnp_reg_map; 772 pmcdev->map = &cnp_reg_map;
773 773
774 if (lpit_read_residency_count_address(&slp_s0_addr)) 774 if (lpit_read_residency_count_address(&slp_s0_addr))