[PATCHv2 1/2] phy: miphy28lp: add COMPILE_TEST

Rosen Penev posted 2 patches 1 month ago
[PATCHv2 1/2] phy: miphy28lp: add COMPILE_TEST
Posted by Rosen Penev 1 month ago
There's nothing special here to prevent compilation on non ARM hosts.

Matches every other st phy driver.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 drivers/phy/st/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/st/Kconfig b/drivers/phy/st/Kconfig
index 304614b6dabf..49206185e563 100644
--- a/drivers/phy/st/Kconfig
+++ b/drivers/phy/st/Kconfig
@@ -4,7 +4,7 @@
 #
 config PHY_MIPHY28LP
 	tristate "STMicroelectronics MIPHY28LP PHY driver for STiH407"
-	depends on ARCH_STI
+	depends on ARCH_STI || COMPILE_TEST
 	select GENERIC_PHY
 	help
 	  Enable this to support the miphy transceiver (for SATA/PCIE/USB3)
--
2.53.0
Re: [PATCHv2 1/2] phy: miphy28lp: add COMPILE_TEST
Posted by Patrice CHOTARD 1 month ago

On 3/6/26 23:24, Rosen Penev wrote:
> There's nothing special here to prevent compilation on non ARM hosts.
> 
> Matches every other st phy driver.
> 
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
> ---
>  drivers/phy/st/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/phy/st/Kconfig b/drivers/phy/st/Kconfig
> index 304614b6dabf..49206185e563 100644
> --- a/drivers/phy/st/Kconfig
> +++ b/drivers/phy/st/Kconfig
> @@ -4,7 +4,7 @@
>  #
>  config PHY_MIPHY28LP
>  	tristate "STMicroelectronics MIPHY28LP PHY driver for STiH407"
> -	depends on ARCH_STI
> +	depends on ARCH_STI || COMPILE_TEST
>  	select GENERIC_PHY
>  	help
>  	  Enable this to support the miphy transceiver (for SATA/PCIE/USB3)
> --
> 2.53.0
> 

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>

Thanks
Patrice