[PATCH] phy: renesas: rcar-gen3-usb2: add regulator dependency

Tommaso Merciai tommaso.merciai.xr at bp.renesas.com
Tue Feb 3 00:24:32 PST 2026


On Mon, Feb 02, 2026 at 10:51:14AM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd at arndb.de>
> 
> The driver start registering a regulator, but can still be
> enabled even when it is unable to call into the regulator
> subsystem:
> 
> aarch64-linux-ld: drivers/phy/renesas/phy-rcar-gen3-usb2.o: in function `rcar_gen3_phy_usb2_probe':
> phy-rcar-gen3-usb2.c:(.text+0x2884): undefined reference to `devm_regulator_register'
> 
> Add a Kconfig dependency to avoid this configuration.
> 
> Fixes: b6d7dd157763 ("phy: renesas: rcar-gen3-usb2: Add regulator for OTG VBUS control")

Tested-by: Tommaso Merciai <tommaso.merciai.xr at bp.renesas.com>

> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
> ---
>  drivers/phy/renesas/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/phy/renesas/Kconfig b/drivers/phy/renesas/Kconfig
> index d217c630b2fd..90a9ca2db7fc 100644
> --- a/drivers/phy/renesas/Kconfig
> +++ b/drivers/phy/renesas/Kconfig
> @@ -29,6 +29,7 @@ config PHY_RCAR_GEN3_USB2
>  	depends on ARCH_RENESAS
>  	depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in
>  	depends on USB_SUPPORT
> +	depends on REGULATOR
>  	select GENERIC_PHY
>  	select MULTIPLEXER
>  	select USB_COMMON
> -- 
> 2.39.5
> 

Thanks & Regards,
Tommaso



More information about the linux-phy mailing list