diff options
author | Felipe Balbi <balbi@ti.com> | 2015-04-28 12:13:15 -0400 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-05-12 11:27:18 -0400 |
commit | 7f7a4d306ff87502dc26860f54e798693cf9b1e1 (patch) | |
tree | 7b16f95402bdcd5a6cca2139b751cf58d24b3d28 | |
parent | 4d051f74cbb270310d1af3f56d4c83801d8bedc8 (diff) |
phy: fix Kconfig dependencies
DM816x PHY uses usb_phy_* methods and because
of that, it must select USB_PHY, however, because
the drivers in question (DM816x, TWL4030 and
OMAP_USB2) sit outside of drivers/usb/ directory,
meaning they can be built even if USB_SUPPORT=n.
This patches fixes the dependencies by adding
USB_SUPPORT as a dependency and making all drivers
select USB_PHY (which cannot be selected through
menuconfig).
Note that this fixes some linking breakages when
building with randconfig.
Cc: Tony Lindgren <tony@atomide.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
-rw-r--r-- | drivers/phy/Kconfig | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 33e703eec87b..fc9b9f0ea91e 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig | |||
@@ -38,7 +38,9 @@ config ARMADA375_USBCLUSTER_PHY | |||
38 | config PHY_DM816X_USB | 38 | config PHY_DM816X_USB |
39 | tristate "TI dm816x USB PHY driver" | 39 | tristate "TI dm816x USB PHY driver" |
40 | depends on ARCH_OMAP2PLUS | 40 | depends on ARCH_OMAP2PLUS |
41 | depends on USB_SUPPORT | ||
41 | select GENERIC_PHY | 42 | select GENERIC_PHY |
43 | select USB_PHY | ||
42 | help | 44 | help |
43 | Enable this for dm816x USB to work. | 45 | Enable this for dm816x USB to work. |
44 | 46 | ||
@@ -97,8 +99,9 @@ config OMAP_CONTROL_PHY | |||
97 | config OMAP_USB2 | 99 | config OMAP_USB2 |
98 | tristate "OMAP USB2 PHY Driver" | 100 | tristate "OMAP USB2 PHY Driver" |
99 | depends on ARCH_OMAP2PLUS | 101 | depends on ARCH_OMAP2PLUS |
100 | depends on USB_PHY | 102 | depends on USB_SUPPORT |
101 | select GENERIC_PHY | 103 | select GENERIC_PHY |
104 | select USB_PHY | ||
102 | select OMAP_CONTROL_PHY | 105 | select OMAP_CONTROL_PHY |
103 | depends on OMAP_OCP2SCP | 106 | depends on OMAP_OCP2SCP |
104 | help | 107 | help |
@@ -122,8 +125,9 @@ config TI_PIPE3 | |||
122 | config TWL4030_USB | 125 | config TWL4030_USB |
123 | tristate "TWL4030 USB Transceiver Driver" | 126 | tristate "TWL4030 USB Transceiver Driver" |
124 | depends on TWL4030_CORE && REGULATOR_TWL4030 && USB_MUSB_OMAP2PLUS | 127 | depends on TWL4030_CORE && REGULATOR_TWL4030 && USB_MUSB_OMAP2PLUS |
125 | depends on USB_PHY | 128 | depends on USB_SUPPORT |
126 | select GENERIC_PHY | 129 | select GENERIC_PHY |
130 | select USB_PHY | ||
127 | help | 131 | help |
128 | Enable this to support the USB OTG transceiver on TWL4030 | 132 | Enable this to support the USB OTG transceiver on TWL4030 |
129 | family chips (including the TWL5030 and TPS659x0 devices). | 133 | family chips (including the TWL5030 and TPS659x0 devices). |