Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move FCH header to a location accessible by all archs

A new header fch.h was created to store registers used by different AMD
drivers. This header was included by i2c-piix4 in
commit 624b0d5696a8 ("i2c: piix4, x86/platform: Move the SB800 PIIX4 FCH
definitions to <asm/amd/fch.h>"). To prevent compile failures on non-x86
archs i2c-piix4 was set to only compile on x86 by commit 7e173eb82ae9717
("i2c: piix4: Make CONFIG_I2C_PIIX4 dependent on CONFIG_X86").
This was not a good decision because loongarch and mips both actually
support i2c-piix4 and set it enabled in the defconfig.

Move the header to a location accessible by all architectures.

Fixes: 624b0d5696a89 ("i2c: piix4, x86/platform: Move the SB800 PIIX4 FCH definitions to <asm/amd/fch.h>")
Suggested-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250610205817.3912944-1-superm1@kernel.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Mario Limonciello and committed by
Ilpo Järvinen
b1c26e05 690be4bc

+3 -3
arch/x86/include/asm/amd/fch.h include/linux/platform_data/x86/amd-fch.h
+1 -1
arch/x86/kernel/cpu/amd.c
··· 9 9 #include <linux/sched/clock.h> 10 10 #include <linux/random.h> 11 11 #include <linux/topology.h> 12 - #include <asm/amd/fch.h> 12 + #include <linux/platform_data/x86/amd-fch.h> 13 13 #include <asm/processor.h> 14 14 #include <asm/apic.h> 15 15 #include <asm/cacheinfo.h>
+1 -1
drivers/i2c/busses/i2c-piix4.c
··· 34 34 #include <linux/dmi.h> 35 35 #include <linux/acpi.h> 36 36 #include <linux/io.h> 37 - #include <asm/amd/fch.h> 37 + #include <linux/platform_data/x86/amd-fch.h> 38 38 39 39 #include "i2c-piix4.h" 40 40
+1 -1
drivers/platform/x86/amd/pmc/pmc-quirks.c
··· 11 11 #include <linux/dmi.h> 12 12 #include <linux/io.h> 13 13 #include <linux/ioport.h> 14 - #include <asm/amd/fch.h> 14 + #include <linux/platform_data/x86/amd-fch.h> 15 15 16 16 #include "pmc.h" 17 17