diff mbox series

usb: USB_FOTG210 should depend on ARCH_GEMINI

Message ID a989b3b798ecaf3b45f35160e30e605636d66a77.1669044086.git.geert+renesas@glider.be (mailing list archive)
State Accepted
Commit 6d36e0e1a14ac9a382c7a157bce5354fd8b68134
Headers show
Series usb: USB_FOTG210 should depend on ARCH_GEMINI | expand

Commit Message

Geert Uytterhoeven Nov. 21, 2022, 3:22 p.m. UTC
The Faraday Technology FOTG210 USB2 Dual Role Controller is only present
on Cortina Systems Gemini SoCs.  Hence add a dependency on ARCH_GEMINI,
to prevent asking the user about its drivers when configuring a kernel
without Cortina Systems Gemini SoC support.

Fixes: 1dd33a9f1b95ab59 ("usb: fotg210: Collect pieces of dual mode controller")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/usb/fotg210/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Linus Walleij Nov. 21, 2022, 10:55 p.m. UTC | #1
On Mon, Nov 21, 2022 at 4:22 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:

> The Faraday Technology FOTG210 USB2 Dual Role Controller is only present
> on Cortina Systems Gemini SoCs.  Hence add a dependency on ARCH_GEMINI,
> to prevent asking the user about its drivers when configuring a kernel
> without Cortina Systems Gemini SoC support.
>
> Fixes: 1dd33a9f1b95ab59 ("usb: fotg210: Collect pieces of dual mode controller")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Ok that's fair. When Faraday merged these drivers they probably had
some other system(s) in mind, but they don't talk much recently so:
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij
Linus Walleij Dec. 5, 2022, 10:24 p.m. UTC | #2
On Mon, Nov 21, 2022 at 4:22 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:

> The Faraday Technology FOTG210 USB2 Dual Role Controller is only present
> on Cortina Systems Gemini SoCs.

As it turns out, this is not true. The TI nSpire uses this too, I should have
noted since the nSpire maintainer was patching the driver...
https://lore.kernel.org/linux-usb/20210324141115.9384-1-fabian@ritter-vogt.de/

Shall we revert it or just add another clause for the nSpire?

Yours,
Linus Walleij
Geert Uytterhoeven Dec. 6, 2022, 8 a.m. UTC | #3
Hi Linus,

On Mon, Dec 5, 2022 at 11:24 PM Linus Walleij <linus.walleij@linaro.org> wrote:
> On Mon, Nov 21, 2022 at 4:22 PM Geert Uytterhoeven
> <geert+renesas@glider.be> wrote:
> > The Faraday Technology FOTG210 USB2 Dual Role Controller is only present
> > on Cortina Systems Gemini SoCs.
>
> As it turns out, this is not true. The TI nSpire uses this too, I should have
> noted since the nSpire maintainer was patching the driver...
> https://lore.kernel.org/linux-usb/20210324141115.9384-1-fabian@ritter-vogt.de/
>
> Shall we revert it or just add another clause for the nSpire?

Oh, but the integration is not (yet) upstream, as I didn't find any
"faraday,fotg210" outside gemini.dtsi.

I guess another clause would be the most-userfriendly solution.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Linus Walleij Dec. 6, 2022, 1:49 p.m. UTC | #4
On Tue, Dec 6, 2022 at 9:01 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> On Mon, Dec 5, 2022 at 11:24 PM Linus Walleij <linus.walleij@linaro.org> wrote:
> > On Mon, Nov 21, 2022 at 4:22 PM Geert Uytterhoeven
> > <geert+renesas@glider.be> wrote:
> > > The Faraday Technology FOTG210 USB2 Dual Role Controller is only present
> > > on Cortina Systems Gemini SoCs.
> >
> > As it turns out, this is not true. The TI nSpire uses this too, I should have
> > noted since the nSpire maintainer was patching the driver...
> > https://lore.kernel.org/linux-usb/20210324141115.9384-1-fabian@ritter-vogt.de/
> >
> > Shall we revert it or just add another clause for the nSpire?
>
> Oh, but the integration is not (yet) upstream, as I didn't find any
> "faraday,fotg210" outside gemini.dtsi.

Ah it is still brewing, sorry.

> I guess another clause would be the most-userfriendly solution.

Yeah we can just add it when adding nSpire II.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/usb/fotg210/Kconfig b/drivers/usb/fotg210/Kconfig
index 534206ee0d1db74f..dad1b088aba59217 100644
--- a/drivers/usb/fotg210/Kconfig
+++ b/drivers/usb/fotg210/Kconfig
@@ -4,6 +4,7 @@  config USB_FOTG210
 	tristate "Faraday FOTG210 USB2 Dual Role controller"
 	depends on USB || USB_GADGET
 	depends on HAS_DMA && HAS_IOMEM
+	depends on ARCH_GEMINI || COMPILE_TEST
 	default ARCH_GEMINI
 	select MFD_SYSCON
 	help