Skip to content

Commit

Permalink
platform/x86: intel_pmc_core: Handle CFL regmap properly
Browse files Browse the repository at this point in the history
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" <[email protected]>
Cc: Srinivas Pandruvada <[email protected]>
Fixes: 661405b ("platform/x86: intel_pmc_core: Special case for Coffeelake")
Acked-by: "David E. Box" <[email protected]>
Signed-off-by: Rajneesh Bhardwaj <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
  • Loading branch information
Rajneesh Bhardwaj authored and andy-shev committed Feb 5, 2019
1 parent 871f1f2 commit e50af83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/intel_pmc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e50af83

Please sign in to comment.