0007-usb-USB_FOTG210-should-depend-on-ARCH_GEMINI.patch 1.2 KB

1234567891011121314151617181920212223242526
  1. From 466b10510add46afd21ca19505b29d35ad853370 Mon Sep 17 00:00:00 2001
  2. From: Geert Uytterhoeven <[email protected]>
  3. Date: Mon, 21 Nov 2022 16:22:19 +0100
  4. Subject: [PATCH 07/29] usb: USB_FOTG210 should depend on ARCH_GEMINI
  5. The Faraday Technology FOTG210 USB2 Dual Role Controller is only present
  6. on Cortina Systems Gemini SoCs. Hence add a dependency on ARCH_GEMINI,
  7. to prevent asking the user about its drivers when configuring a kernel
  8. without Cortina Systems Gemini SoC support.
  9. Fixes: 1dd33a9f1b95ab59 ("usb: fotg210: Collect pieces of dual mode controller")
  10. Signed-off-by: Geert Uytterhoeven <[email protected]>
  11. Reviewed-by: Linus Walleij <[email protected]>
  12. Link: https://lore.kernel.org/r/a989b3b798ecaf3b45f35160e30e605636d66a77.1669044086.git.geert+renesas@glider.be
  13. Signed-off-by: Greg Kroah-Hartman <[email protected]>
  14. ---
  15. --- a/drivers/usb/fotg210/Kconfig
  16. +++ b/drivers/usb/fotg210/Kconfig
  17. @@ -4,6 +4,7 @@ config USB_FOTG210
  18. tristate "Faraday FOTG210 USB2 Dual Role controller"
  19. depends on USB || USB_GADGET
  20. depends on HAS_DMA && HAS_IOMEM
  21. + depends on ARCH_GEMINI || COMPILE_TEST
  22. default ARCH_GEMINI
  23. select MFD_SYSCON
  24. help