Commit d667378a authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

mei: rework Kconfig dependencies

The dependencies in the mei framework are inconsistent, with some symbols
using 'select INTEL_MEI' to force it being enabled and others using
'depends on INTEL_MEI'.

In general, one should not select user-visible symbols, so change all
of these to normal dependencies, but change the default on INTEL_MEI to
be enabled when building a kernel for an Intel CPU with ME or a generic
x86 kernel.

Having consistent dependencies makes the 'menuconfig' listing more
readable by using proper indentation.

A large if/endif block is just a simpler syntax than repeating the
dependencies for each symbol.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarWentong Wu <wentong.wu@intel.com>
Link: https://lore.kernel.org/r/20231214183946.109124-2-arnd@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 95171e45
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
config INTEL_MEI config INTEL_MEI
tristate "Intel Management Engine Interface" tristate "Intel Management Engine Interface"
depends on X86 && PCI depends on X86 && PCI
default GENERIC_CPU || MCORE2 || MATOM || X86_GENERIC
help help
The Intel Management Engine (Intel ME) provides Manageability, The Intel Management Engine (Intel ME) provides Manageability,
Security and Media services for system containing Intel chipsets. Security and Media services for system containing Intel chipsets.
...@@ -11,10 +12,11 @@ config INTEL_MEI ...@@ -11,10 +12,11 @@ config INTEL_MEI
For more information see For more information see
<https://software.intel.com/en-us/manageability/> <https://software.intel.com/en-us/manageability/>
if INTEL_MEI
config INTEL_MEI_ME config INTEL_MEI_ME
tristate "ME Enabled Intel Chipsets" tristate "ME Enabled Intel Chipsets"
select INTEL_MEI default y
depends on X86 && PCI
help help
MEI support for ME Enabled Intel chipsets. MEI support for ME Enabled Intel chipsets.
...@@ -38,8 +40,6 @@ config INTEL_MEI_ME ...@@ -38,8 +40,6 @@ config INTEL_MEI_ME
config INTEL_MEI_TXE config INTEL_MEI_TXE
tristate "Intel Trusted Execution Environment with ME Interface" tristate "Intel Trusted Execution Environment with ME Interface"
select INTEL_MEI
depends on X86 && PCI
help help
MEI Support for Trusted Execution Environment device on Intel SoCs MEI Support for Trusted Execution Environment device on Intel SoCs
...@@ -48,9 +48,7 @@ config INTEL_MEI_TXE ...@@ -48,9 +48,7 @@ config INTEL_MEI_TXE
config INTEL_MEI_GSC config INTEL_MEI_GSC
tristate "Intel MEI GSC embedded device" tristate "Intel MEI GSC embedded device"
depends on INTEL_MEI
depends on INTEL_MEI_ME depends on INTEL_MEI_ME
depends on X86 && PCI
depends on DRM_I915 depends on DRM_I915
help help
Intel auxiliary driver for GSC devices embedded in Intel graphics devices. Intel auxiliary driver for GSC devices embedded in Intel graphics devices.
...@@ -62,7 +60,6 @@ config INTEL_MEI_GSC ...@@ -62,7 +60,6 @@ config INTEL_MEI_GSC
config INTEL_MEI_VSC_HW config INTEL_MEI_VSC_HW
tristate "Intel visual sensing controller device transport driver" tristate "Intel visual sensing controller device transport driver"
depends on INTEL_MEI
depends on ACPI && SPI depends on ACPI && SPI
depends on GPIOLIB || COMPILE_TEST depends on GPIOLIB || COMPILE_TEST
help help
...@@ -75,7 +72,6 @@ config INTEL_MEI_VSC_HW ...@@ -75,7 +72,6 @@ config INTEL_MEI_VSC_HW
config INTEL_MEI_VSC config INTEL_MEI_VSC
tristate "Intel visual sensing controller device with ME interface" tristate "Intel visual sensing controller device with ME interface"
depends on INTEL_MEI_VSC_HW depends on INTEL_MEI_VSC_HW
depends on INTEL_MEI
help help
Intel MEI over SPI driver for Intel visual sensing controller Intel MEI over SPI driver for Intel visual sensing controller
(IVSC) device embedded in IA platform. It supports camera sharing (IVSC) device embedded in IA platform. It supports camera sharing
...@@ -88,3 +84,5 @@ config INTEL_MEI_VSC ...@@ -88,3 +84,5 @@ config INTEL_MEI_VSC
source "drivers/misc/mei/hdcp/Kconfig" source "drivers/misc/mei/hdcp/Kconfig"
source "drivers/misc/mei/pxp/Kconfig" source "drivers/misc/mei/pxp/Kconfig"
source "drivers/misc/mei/gsc_proxy/Kconfig" source "drivers/misc/mei/gsc_proxy/Kconfig"
endif
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
config INTEL_MEI_GSC_PROXY config INTEL_MEI_GSC_PROXY
tristate "Intel GSC Proxy services of ME Interface" tristate "Intel GSC Proxy services of ME Interface"
select INTEL_MEI_ME depends on INTEL_MEI_ME
depends on DRM_I915 depends on DRM_I915
help help
MEI Support for GSC Proxy Services on Intel platforms. MEI Support for GSC Proxy Services on Intel platforms.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
config INTEL_MEI_HDCP config INTEL_MEI_HDCP
tristate "Intel HDCP2.2 services of ME Interface" tristate "Intel HDCP2.2 services of ME Interface"
select INTEL_MEI_ME depends on INTEL_MEI_ME
depends on DRM_I915 depends on DRM_I915
help help
MEI Support for HDCP2.2 Services on Intel platforms. MEI Support for HDCP2.2 Services on Intel platforms.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
config INTEL_MEI_PXP config INTEL_MEI_PXP
tristate "Intel PXP services of ME Interface" tristate "Intel PXP services of ME Interface"
select INTEL_MEI_ME depends on INTEL_MEI_ME
depends on DRM_I915 depends on DRM_I915
help help
MEI Support for PXP Services on Intel platforms. MEI Support for PXP Services on Intel platforms.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment