]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86: p2sb: Cache correct PCI bar for P2SB on Gemini Lake
authorHans de Goede <hdegoede@redhat.com>
Sat, 16 Nov 2024 15:45:46 +0000 (16:45 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 18 Nov 2024 11:53:03 +0000 (13:53 +0200)
Gemini Lake (Goldmont Plus) is an Apollo Lake (Goldmont) derived design and
as such has the P2SB at device.function 13.0, rather then at the default
31.1, just like Apollo Lake.

At a mapping to P2SB_DEVFN_GOLDMONT to p2sb_cpu_ids[] for Goldmont Plus,
so that the correct PCI bar gets cached.

This fixes P2SB unhiding not working on these devices, which fixes
SPI support for the bootrom SPI controller not working.

Fixes: 2841631a0365 ("platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe")
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241116154546.85761-1-hdegoede@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/p2sb.c

index 31f38309b389ab66d1fa42aa20b4c227711f4994..d51eb0db06264d089d6da090a75c468dce39e191 100644 (file)
@@ -25,6 +25,7 @@
 
 static const struct x86_cpu_id p2sb_cpu_ids[] = {
        X86_MATCH_VFM(INTEL_ATOM_GOLDMONT, P2SB_DEVFN_GOLDMONT),
+       X86_MATCH_VFM(INTEL_ATOM_GOLDMONT_PLUS, P2SB_DEVFN_GOLDMONT),
        {}
 };