Skip to contentSkip to conversation

mei: fix vsc dependency

PATCH Superseded Arnd Bergmann 3 participants 3 messages Dec 13, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

Fixes 566f5ca97680 ("mei: Add transport driver for IVSC device")
---
 drivers/misc/mei/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/mei/Kconfig +1 -1
index 858bd701d68c..eb69987f8325 100644
@@ -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
#1 lore raw

Hi Arnd,

Thanks for the patch.

Quoted 28 lines · Arnd Bergmann

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.

Fixes 566f5ca97680 ("mei: Add transport driver for IVSC device")
---
 drivers/misc/mei/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/mei/Kconfig +0 -0
index 858bd701d68c..eb69987f8325 100644

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 -1
 	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 · 3 lines
Kind regards,

Sakari Ailus
maintainer
#2 lore raw
Quoted 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 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:

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.

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