[PATCH 2/2] usb/host/Kconfig: Ensure all deps are met when selecting USB_HCD_?HCI_PLATFORM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kconfig entries selecting another option must make sure all the selected
options deps are met to avoid warnings like:

warning: (USB_HCD_BCMA && USB_HCD_SSB && USB_CNS3XXX_EHCI && USB_EHCI_ATH79) selects USB_EHCI_HCD_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB && USB_EHCI_HCD && !PPC_OF)

Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
---
 drivers/usb/host/Kconfig | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 1dd73e3..0df261a 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -230,7 +230,7 @@ config USB_W90X900_EHCI
 
 config USB_CNS3XXX_EHCI
 	bool "Cavium CNS3XXX EHCI Module (DEPRECATED)"
-	depends on ARCH_CNS3XXX
+	depends on ARCH_CNS3XXX && !PPC_OF && (GENERIC_PHY || !GENERIC_PHY)
 	select USB_EHCI_HCD_PLATFORM
 	---help---
 	  This option is deprecated now and the driver was removed, use
@@ -243,6 +243,7 @@ config USB_CNS3XXX_EHCI
 config USB_EHCI_ATH79
 	bool "EHCI support for AR7XXX/AR9XXX SoCs (DEPRECATED)"
 	depends on (SOC_AR71XX || SOC_AR724X || SOC_AR913X || SOC_AR933X)
+	depends on !PPC_OF && (GENERIC_PHY || !GENERIC_PHY)
 	select USB_EHCI_ROOT_HUB_TT
 	select USB_EHCI_HCD_PLATFORM
 	default y
@@ -709,7 +710,7 @@ config USB_OCTEON2_COMMON
 
 config USB_HCD_BCMA
 	tristate "BCMA usb host driver"
-	depends on BCMA
+	depends on BCMA && !PPC_OF && (GENERIC_PHY || !GENERIC_PHY)
 	select USB_OHCI_HCD_PLATFORM if USB_OHCI_HCD
 	select USB_EHCI_HCD_PLATFORM if USB_EHCI_HCD
 	help
@@ -721,7 +722,7 @@ config USB_HCD_BCMA
 
 config USB_HCD_SSB
 	tristate "SSB usb host driver"
-	depends on SSB
+	depends on SSB && !PPC_OF && (GENERIC_PHY || !GENERIC_PHY)
 	select USB_OHCI_HCD_PLATFORM if USB_OHCI_HCD
 	select USB_EHCI_HCD_PLATFORM if USB_EHCI_HCD
 	help
-- 
1.8.5.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux