* [PATCH] phy: PHY_GOOGLE_USB should depend on ARCH_GOOGLE
@ 2026-01-27 19:12 Geert Uytterhoeven
2026-01-28 20:03 ` André Draszik
2026-02-04 15:19 ` Vinod Koul
0 siblings, 2 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2026-01-27 19:12 UTC (permalink / raw)
To: Vinod Koul, Neil Armstrong, Peter Griffin, André Draszik,
Tudor Ambarus, Naveen Kumar, Roy Luo, Joy Chakraborty,
Arnd Bergmann
Cc: linux-phy, linux-arm-kernel, linux-samsung-soc, linux-kernel,
Geert Uytterhoeven
The Google Tensor SoC USB PHY is only present on Google Tensor G5
(Laguna) SoCs. Hence add a dependency on ARCH_GOOGLE, to prevent asking
the user about this driver when configuring a kernel without Google
Tensor SoC support.
Fixes: cbce66669c82ee9a ("phy: Add Google Tensor SoC USB PHY driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
ARCH_GOOGLE is not yet upstream, but that doesn't hurt.
---
drivers/phy/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
index 142e7b0ef2efb920..3ceda9a20d571038 100644
--- a/drivers/phy/Kconfig
+++ b/drivers/phy/Kconfig
@@ -49,6 +49,7 @@ config GENERIC_PHY_MIPI_DPHY
config PHY_GOOGLE_USB
tristate "Google Tensor SoC USB PHY driver"
+ depends on ARCH_GOOGLE || COMPILE_TEST
select GENERIC_PHY
help
Enable support for the USB PHY on Google Tensor SoCs, starting with
--
2.43.0
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] phy: PHY_GOOGLE_USB should depend on ARCH_GOOGLE
2026-01-27 19:12 [PATCH] phy: PHY_GOOGLE_USB should depend on ARCH_GOOGLE Geert Uytterhoeven
@ 2026-01-28 20:03 ` André Draszik
2026-01-29 8:32 ` Geert Uytterhoeven
2026-02-04 15:19 ` Vinod Koul
1 sibling, 1 reply; 4+ messages in thread
From: André Draszik @ 2026-01-28 20:03 UTC (permalink / raw)
To: Geert Uytterhoeven, Vinod Koul, Neil Armstrong, Peter Griffin,
Tudor Ambarus, Naveen Kumar, Roy Luo, Joy Chakraborty,
Arnd Bergmann
Cc: linux-phy, linux-arm-kernel, linux-samsung-soc, linux-kernel
Hi Geert,
On Tue, 2026-01-27 at 20:12 +0100, Geert Uytterhoeven wrote:
> The Google Tensor SoC USB PHY is only present on Google Tensor G5
> (Laguna) SoCs. Hence add a dependency on ARCH_GOOGLE, to prevent asking
> the user about this driver when configuring a kernel without Google
> Tensor SoC support.
>
> Fixes: cbce66669c82ee9a ("phy: Add Google Tensor SoC USB PHY driver")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> ARCH_GOOGLE is not yet upstream, but that doesn't hurt.
I can see your point, and have no objection, but for context, Greg
had asked to not add dependencies on a config option that might or
might not get added in the future - ARCH_GOOGLE:
https://lore.kernel.org/all/2025121728-reliably-crabgrass-2601@gregkh/
Maybe an alternative would be to make it default=n, and change that
default once ARCH_GOOGLE gets added?
Cheers,
Andre'
> ---
> drivers/phy/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
> index 142e7b0ef2efb920..3ceda9a20d571038 100644
> --- a/drivers/phy/Kconfig
> +++ b/drivers/phy/Kconfig
> @@ -49,6 +49,7 @@ config GENERIC_PHY_MIPI_DPHY
>
> config PHY_GOOGLE_USB
> tristate "Google Tensor SoC USB PHY driver"
> + depends on ARCH_GOOGLE || COMPILE_TEST
> select GENERIC_PHY
> help
> Enable support for the USB PHY on Google Tensor SoCs, starting with
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] phy: PHY_GOOGLE_USB should depend on ARCH_GOOGLE
2026-01-28 20:03 ` André Draszik
@ 2026-01-29 8:32 ` Geert Uytterhoeven
0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2026-01-29 8:32 UTC (permalink / raw)
To: André Draszik
Cc: Geert Uytterhoeven, Vinod Koul, Neil Armstrong, Peter Griffin,
Tudor Ambarus, Naveen Kumar, Roy Luo, Joy Chakraborty,
Arnd Bergmann, linux-phy, linux-arm-kernel, linux-samsung-soc,
linux-kernel
Hi André,
On Wed, 28 Jan 2026 at 21:03, André Draszik <andre.draszik@linaro.org> wrote:
> On Tue, 2026-01-27 at 20:12 +0100, Geert Uytterhoeven wrote:
> > The Google Tensor SoC USB PHY is only present on Google Tensor G5
> > (Laguna) SoCs. Hence add a dependency on ARCH_GOOGLE, to prevent asking
> > the user about this driver when configuring a kernel without Google
> > Tensor SoC support.
> >
> > Fixes: cbce66669c82ee9a ("phy: Add Google Tensor SoC USB PHY driver")
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > ---
> > ARCH_GOOGLE is not yet upstream, but that doesn't hurt.
>
> I can see your point, and have no objection, but for context, Greg
> had asked to not add dependencies on a config option that might or
> might not get added in the future - ARCH_GOOGLE:
The exact name may indeed still be under discussion. But we all know
there _will_ be a config option (unless the platform is abandoned before
upstreaming, and this driver will be removed again anyway ;-).
> Maybe an alternative would be to make it default=n, and change that
> default once ARCH_GOOGLE gets added?
It already defaults to disabled, as "default=n" is the default.
> > --- a/drivers/phy/Kconfig
> > +++ b/drivers/phy/Kconfig
> > @@ -49,6 +49,7 @@ config GENERIC_PHY_MIPI_DPHY
> >
> > config PHY_GOOGLE_USB
> > tristate "Google Tensor SoC USB PHY driver"
> > + depends on ARCH_GOOGLE || COMPILE_TEST
> > select GENERIC_PHY
> > help
> > Enable support for the USB PHY on Google Tensor SoCs, starting with
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
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] phy: PHY_GOOGLE_USB should depend on ARCH_GOOGLE
2026-01-27 19:12 [PATCH] phy: PHY_GOOGLE_USB should depend on ARCH_GOOGLE Geert Uytterhoeven
2026-01-28 20:03 ` André Draszik
@ 2026-02-04 15:19 ` Vinod Koul
1 sibling, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2026-02-04 15:19 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Neil Armstrong, Peter Griffin, André Draszik, Tudor Ambarus,
Naveen Kumar, Roy Luo, Joy Chakraborty, Arnd Bergmann, linux-phy,
linux-arm-kernel, linux-samsung-soc, linux-kernel
Hi Geert,
On 27-01-26, 20:12, Geert Uytterhoeven wrote:
> The Google Tensor SoC USB PHY is only present on Google Tensor G5
> (Laguna) SoCs. Hence add a dependency on ARCH_GOOGLE, to prevent asking
> the user about this driver when configuring a kernel without Google
> Tensor SoC support.
I have three patches for this :-) Looking at it, I prefer Arnd's
approach and not to depend on unknown symbol.
--
~Vinod
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-04 15:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-27 19:12 [PATCH] phy: PHY_GOOGLE_USB should depend on ARCH_GOOGLE Geert Uytterhoeven
2026-01-28 20:03 ` André Draszik
2026-01-29 8:32 ` Geert Uytterhoeven
2026-02-04 15:19 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox