mei: fix vsc dependency
Subsystems (2)
PATCH 1/1 mei: fix vsc dependency
From: Arnd Bergmann <[email protected]>
The Kconfig dependency in the new module is reversed from the dependency on the exported symbols, so it fails to link with CONFIG_INTEL_MEI_VSC disabled and CONFIG_INTEL_MEI_VSC_HW enabled:
ERROR: modpost: "vsc_tp_reset" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_init" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_xfer" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_need_read" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_intr_enable" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_intr_synchronize" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_intr_disable" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_register_event_cb" [drivers/misc/mei/mei-vsc.ko] undefined!
Make the dependency reflect the module dependency.
--- drivers/misc/mei/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/mei/Kconfig +1 -1
@@ -64,6 +64,7 @@ config INTEL_MEI_VSC_HW tristate "Intel visual sensing controller device transport driver" depends on ACPI && SPI depends on GPIOLIB || COMPILE_TEST + depends on INTEL_MEI_VSC help Intel SPI transport driver between host and Intel visual sensing controller (IVSC) device.
@@ -73,7 +74,6 @@ config INTEL_MEI_VSC_HW config INTEL_MEI_VSC tristate "Intel visual sensing controller device with ME interface" - depends on INTEL_MEI_VSC_HW depends on INTEL_MEI help Intel MEI over SPI driver for Intel visual sensing controller
Signature · 1 line
2.39.2
Hi Arnd,
Thanks for the patch.
Quoted 28 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The
Kconfigdependency in the new module is reversed from the dependency on the exported symbols, so it fails to link withCONFIG_INTEL_MEI_VSCdisabled andCONFIG_INTEL_MEI_VSC_HWenabled:ERROR: modpost: "
vsc_tp_reset" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_init" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_xfer" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_need_read" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_intr_enable" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_intr_synchronize" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_intr_disable" [drivers/misc/mei/mei-vsc.ko] undefined!
ERROR: modpost: "vsc_tp_register_event_cb" [drivers/misc/mei/mei-vsc.ko] undefined!Make the dependency reflect the module dependency.
Fixes 566f5ca97680 ("mei: Add transport driver for IVSC device")Signed-off-by Arnd Bergmann <[email protected]>--- drivers/misc/mei/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/misc/mei/Kconfig +0
-0
drivers/misc/mei/Kconfig config INTEL_MEI_VSC_HW · line 67
Quoted 4 lines
drivers/misc/mei/Kconfig +1
-0@@ -64,6 +64,7 @@ config INTEL_MEI_VSC_HW tristate "Intel visual sensing controller device transport driver" depends on ACPI && SPI depends on GPIOLIB || COMPILE_TEST + depends on INTEL_MEI_VSC
Oops. The dependency indeed seems to have been reversed.
Could you also reorder the entries so the one that depends on the other would be below?
Quoted 11 lines
drivers/misc/mei/Kconfig +0
-1help Intel SPI transport driver between host and Intel visual sensing controller (IVSC) device.@@ -73,7 +74,6 @@ config INTEL_MEI_VSC_HW config INTEL_MEI_VSC tristate "Intel visual sensing controller device with ME interface" - depends on INTEL_MEI_VSC_HW depends on INTEL_MEI help Intel MEI over SPI driver for Intel visual sensing controller
Signature · 3 lines
Kind regards, Sakari Ailus
Arnd Bergmann
maintainerQuoted 14 lines · Sakari Ailus
drivers/misc/mei/Kconfig config INTEL_MEI_VSC_HW · line 67
Quoted 10 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The
Kconfigdependency in the new module is reversed from the dependency on the exported symbols, so it fails to link withCONFIG_INTEL_MEI_VSCdisabled andCONFIG_INTEL_MEI_VSC_HWenabled:drivers/misc/mei/Kconfig +1
-0@@ -64,6 +64,7 @@ config INTEL_MEI_VSC_HW tristate "Intel visual sensing controller device transport driver" depends on ACPI && SPI depends on GPIOLIB || COMPILE_TEST + depends on INTEL_MEI_VSCOops. The dependency indeed seems to have been reversed.
Quoted 2 lines
Could you also reorder the entries so the one that depends on the other would be below?
Update: I actually misread the code and the original dependency appears to have been correct. Instead there is a different bug, so I'll send a new patch after I have done enough testing on the new version.
Armd