Skip to contentSkip to conversation

usb: typec: mux: intel: Add dependency on USB_COMMON

PATCH In review Heikki Krogerus 2 participants 2 messages Jul 31, 2023

Subsystems (2)
lore
Share & tools
lore

Heikki Krogerus

author maintainer
#0 lore raw

PATCH 1/1 usb: typec: mux: intel: Add dependency on USB_COMMON

This fixes an undefined reference to `usb_debug_root' issue when USB_COMMON is not enabled.

Fixes 0a453dc9f260 ("usb: typec: intel_pmc_mux: Expose IOM port status to debugfs")
Cc Rajat Khandelwal <[email protected]>
---
 drivers/usb/typec/mux/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/typec/mux/Kconfig +1 -0
index 784b9d8107e9b..65da61150ba78 100644
@@ -29,6 +29,7 @@ config TYPEC_MUX_INTEL_PMC
 	tristate "Intel PMC mux control"
 	depends on ACPI
 	depends on INTEL_SCU_IPC
+	select USB_COMMON
 	select USB_ROLE_SWITCH
 	help
 	  Driver for USB muxes controlled by Intel PMC FW. Intel PMC FW can
Signature · 1 line
2.40.1
Tested-by Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Heikki Krogerus

This fixes an undefined reference to `usb_debug_root' issue when USB_COMMON is not enabled.

Fixes 0a453dc9f260 ("usb: typec: intel_pmc_mux: Expose IOM port status to debugfs")
Cc Rajat Khandelwal <[email protected]>

Thanks.

Quoted 16 lines
---
 drivers/usb/typec/mux/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/typec/mux/Kconfig +1 -0
index 784b9d8107e9b..65da61150ba78 100644
@@ -29,6 +29,7 @@ config TYPEC_MUX_INTEL_PMC
 	tristate "Intel PMC mux control"
 	depends on ACPI
 	depends on INTEL_SCU_IPC
+	select USB_COMMON
 	select USB_ROLE_SWITCH
 	help
 	  Driver for USB muxes controlled by Intel PMC FW. Intel PMC FW can
Signature · 1 line
~Randy