Skip to contentSkip to conversation

usb: typec: mux: select not-visible INTEL_SCU_IPC

PATCH In review Randy Dunlap 2 participants 3 messages Jan 30, 2022 – Jan 31, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 usb: typec: mux: select not-visible INTEL_SCU_IPC

Use "select INTEL_SCU_IPC" instead of depending on it since it is not a visible Kconfig symbol and it may not otherwise be set/enabled.

Fixes b62851491a55 ("usb: typec: mux: Convert the Intel PMC Mux driver to use new SCU IPC API")
Cc Heikki Krogerus <[email protected]>
Cc Mika Westerberg <[email protected]>
Cc Lee Jones <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc kernel test robot <[email protected]>

---
v2: add dependency on X86_PLATFORM_DEVICES to fix build error that was
Reported_by: kernel test robot <[email protected]>

 drivers/usb/typec/mux/Kconfig |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/typec/mux/Kconfig +2 -2
@@ -11,8 +11,8 @@ config TYPEC_MUX_PI3USB30532
 
 config TYPEC_MUX_INTEL_PMC
 	tristate "Intel PMC mux control"
-	depends on ACPI
-	depends on INTEL_SCU_IPC
+	depends on ACPI && X86_PLATFORM_DEVICES
+	select INTEL_SCU_IPC
 	select USB_ROLE_SWITCH
 	help
 	  Driver for USB muxes controlled by Intel PMC FW. Intel PMC FW can
maintainer
#1 lore raw
Quoted 21 lines · Randy Dunlap

Use "select INTEL_SCU_IPC" instead of depending on it since it is not a visible Kconfig symbol and it may not otherwise be set/enabled.

Fixes b62851491a55 ("usb: typec: mux: Convert the Intel PMC Mux driver to use new SCU IPC API")
Cc Heikki Krogerus <[email protected]>
Cc Mika Westerberg <[email protected]>
Cc Lee Jones <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc kernel test robot <[email protected]>

---
v2: add dependency on X86_PLATFORM_DEVICES to fix build error that was
Reported_by: kernel test robot <[email protected]>

 drivers/usb/typec/mux/Kconfig |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

drivers/usb/typec/mux/Kconfig config TYPEC_MUX_PI3USB30532 · line 18

Quoted 10 lines
drivers/usb/typec/mux/Kconfig +2 -2
@@ -11,8 +11,8 @@ config TYPEC_MUX_PI3USB30532
 
 config TYPEC_MUX_INTEL_PMC
 	tristate "Intel PMC mux control"
-	depends on ACPI
-	depends on INTEL_SCU_IPC
+	depends on ACPI && X86_PLATFORM_DEVICES
+	select INTEL_SCU_IPC
 	select USB_ROLE_SWITCH
 	help
 	  Driver for USB muxes controlled by Intel PMC FW. Intel PMC FW can

This will cause the driver to fail at probe time if there are no SCU device drivers enabled.

The idea is that the SCU device drivers select the SCU IPC library, not the users of the library like this mux driver.

thanks,

Signature · 1 line
heikki
#2 lore raw
Quoted 36 lines · Heikki Krogerus
Quoted 21 lines · Randy Dunlap

Use "select INTEL_SCU_IPC" instead of depending on it since it is not a visible Kconfig symbol and it may not otherwise be set/enabled.

Fixes b62851491a55 ("usb: typec: mux: Convert the Intel PMC Mux driver to use new SCU IPC API")
Cc Heikki Krogerus <[email protected]>
Cc Mika Westerberg <[email protected]>
Cc Lee Jones <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc kernel test robot <[email protected]>

---
v2: add dependency on X86_PLATFORM_DEVICES to fix build error that was
Reported_by: kernel test robot <[email protected]>

 drivers/usb/typec/mux/Kconfig |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

drivers/usb/typec/mux/Kconfig config TYPEC_MUX_PI3USB30532 · line 18

Quoted 10 lines
drivers/usb/typec/mux/Kconfig +2 -2
@@ -11,8 +11,8 @@ config TYPEC_MUX_PI3USB30532
 
 config TYPEC_MUX_INTEL_PMC
 	tristate "Intel PMC mux control"
-	depends on ACPI
-	depends on INTEL_SCU_IPC
+	depends on ACPI && X86_PLATFORM_DEVICES
+	select INTEL_SCU_IPC
 	select USB_ROLE_SWITCH
 	help
 	  Driver for USB muxes controlled by Intel PMC FW. Intel PMC FW can

This will cause the driver to fail at probe time if there are no SCU device drivers enabled.

Quoted 2 lines

The idea is that the SCU device drivers select the SCU IPC library, not the users of the library like this mux driver.

OK. Thanks.

Signature · 1 line
~Randy