[PATCH] ARM: stm32: Add additional ID register check for KSZ8851 presence

Patrick DELAUNAY patrick.delaunay at foss.st.com
Fri May 28 14:50:55 CEST 2021


Hi,

On 5/3/21 1:31 PM, Marek Vasut wrote:
> Currently the code sets eth1addr only if /ethernet1 alias exists in DT,
> the node pointed to by the alias has "micrel,ks8851-mll" compatible
> string, and the KSZ8851 CCR register read indicates programmed EEPROM
> is not connected.
>
> This is not sufficient to detect cases where the DT still contains the
> KSZ8851 nodes, but the chip itself is not present. Extend the detection
> to handle these cases.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
>   board/dhelectronics/dh_stm32mp1/board.c | 11 ++++++++++-
>   1 file changed, 10 insertions(+), 1 deletion(-)
>


Applied to u-boot-stm/master, thanks!

Regards
Patrick



More information about the U-Boot mailing list