On 10/8/25 08:36, Asadeds wrote: > Add missing CPU_STM32MP255* cases in get_eth_nb() so that U-Boot > correctly reports 2 Ethernet interfaces on stm32mp255 devices. > This fixes the "ethernet not found" error during boot. > > Signed-off-by: Md Asadullah <[email protected]> > --- > arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c > b/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c > index 0d199f6f903..48b452f01b1 100644 > --- a/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c > +++ b/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c > @@ -78,6 +78,16 @@ int get_eth_nb(void) > case CPU_STM32MP257Axx: > nb_eth = 5; /* dual ETH with TSN support */ > break; > + case CPU_STM32MP255Dxx: > + fallthrough; > + case CPU_STM32MP255Axx: > + fallthrough; > + case CPU_STM32MP255Cxx: > + fallthrough; > + case CPU_STM32MP255Fxx:
Hi Can you sort above cases by alphabetical order ? > + fallthrough; > + nb_eth = 2; > + break; As STM32MP253 and STM32MP255 has same number of ethernet, remove the 2 above lines. > case CPU_STM32MP253Fxx: > fallthrough; > case CPU_STM32MP253Dxx: Thanks Patrice

