[PATCH] peci: PECI should depend on ARCH_ASPEED

Geert Uytterhoeven
2022-03-29T09:21:52Z

The Platform Environment Control Interface (PECI) is only available on
Baseboard Management Controllers (BMC) for Intel processors. Currently
the only supported BMCs are ASpeed BMC SoCs. Hence add a dependency on
ARCH_ASPEED, to prevent asking the user about the PECI subsystem when
configuring a kernel without ASpeed SoC support.

Fixes: 6523d3b2ffa238ac ("peci: Add core infrastructure")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
drivers/peci/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/peci/Kconfig b/drivers/peci/Kconfig
index 89872ad833201510..0d3ef8ba0998d649 100644
--- a/drivers/peci/Kconfig
+++ b/drivers/peci/Kconfig
@@ -2,6 +2,7 @@

menuconfig PECI
tristate "PECI support"
+ depends on ARCH_ASPEED || COMPILE_TEST
help
The Platform Environment Control Interface (PECI) is an interface
that provides a communication channel to Intel processors and
--
2.25.1