[PATCH v2 09/16] net: pcs-airoha: unify code using SCU regmap helper

Jerome Forissier jerome.forissier at arm.com
Thu Mar 12 17:05:46 CET 2026


Hi Mikhail,

On 11/02/2026 19:22, Mikhail Kshevetskiy wrote:
> Use common code to get CHIP_SCU registers instead of driver one.
> 
> Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
> ---
>  drivers/net/airoha/pcs-airoha-common.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)


FYI, I had to left this patch out of my pull request to Tom [1] due to
a CI error [2]. The root cause is not obvious to me, and since it is
just some code cleanup I decided to take all the other patches and defer
that one.

[1] https://lore.kernel.org/u-boot/91fa5175-5eb1-4991-9467-fc3fe4f52105@arm.com/T/#u
[2] https://source.denx.de/u-boot/custodians/u-boot-net/-/jobs/1396757#L1193


Thanks,
-- 
Jerome

> diff --git a/drivers/net/airoha/pcs-airoha-common.c b/drivers/net/airoha/pcs-airoha-common.c
> index 8784d92a7a4..16f0dac2951 100644
> --- a/drivers/net/airoha/pcs-airoha-common.c
> +++ b/drivers/net/airoha/pcs-airoha-common.c
> @@ -10,7 +10,7 @@
>  #include <net.h>
>  #include <regmap.h>
>  #include <reset.h>
> -#include <syscon.h>
> +#include <asm/arch/scu-regmap.h>
>  
>  #include "pcs-airoha.h"
>  
> @@ -755,7 +755,7 @@ static int airoha_pcs_probe(struct udevice *dev)
>  		return PTR_ERR(priv->xfi_ana);
>  
>  	/* SCU is used to toggle XFI or HSGMII in global SoC registers */
> -	priv->scu = syscon_regmap_lookup_by_phandle(dev, "airoha,scu");
> +	priv->scu = airoha_get_scu_regmap();
>  	if (IS_ERR(priv->scu))
>  		return PTR_ERR(priv->scu);
>  



More information about the U-Boot mailing list