Skip to content

Commit f398468

Browse files
Chunfeng YunFelipe Balbi
authored andcommitted
usb: mtu3: make USB_MTU3_DUAL_ROLE depend on EXTCON but not USB_MTU3
In fact the driver depends on EXTCON only when it's configed as USB_MTU3_DUAL_ROLE, so make USB_MTU3_DUAL_ROLE depend on EXTCON but not USB_MTU3. Signed-off-by: Chunfeng Yun <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent f3b28e5 commit f398468

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/mtu3/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
config USB_MTU3
44
tristate "MediaTek USB3 Dual Role controller"
5-
depends on EXTCON && (USB || USB_GADGET) && HAS_DMA
5+
depends on (USB || USB_GADGET) && HAS_DMA
66
depends on ARCH_MEDIATEK || COMPILE_TEST
77
select USB_XHCI_MTK if USB_SUPPORT && USB_XHCI_HCD
88
help
@@ -40,6 +40,7 @@ config USB_MTU3_GADGET
4040
config USB_MTU3_DUAL_ROLE
4141
bool "Dual Role mode"
4242
depends on ((USB=y || USB=USB_MTU3) && (USB_GADGET=y || USB_GADGET=USB_MTU3))
43+
depends on (EXTCON=y || EXTCON=USB_MTU3)
4344
help
4445
This is the default mode of working of MTU3 controller where
4546
both host and gadget features are enabled.

0 commit comments

Comments
 (0)