[U-Boot] [PATCH] net: eth-uclass: Remove warning about ROM MAC address

Fabio Estevam festevam at gmail.com
Tue Dec 10 10:42:39 CET 2019


Hi Soeren,

On Thu, Oct 10, 2019 at 8:01 PM Soeren Moch <smoch at web.de> wrote:
>
> Using a MAC address from ROM storage is the normal case for most
> ethernet hardware. Why should we warn about this?
>
> Signed-off-by: Soeren Moch <smoch at web.de>
> ---
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: u-boot at lists.denx.de
> ---
>  net/eth-uclass.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/net/eth-uclass.c b/net/eth-uclass.c
> index 3bd98b01ad..8b29de37bb 100644
> --- a/net/eth-uclass.c
> +++ b/net/eth-uclass.c
> @@ -538,8 +538,6 @@ static int eth_post_probe(struct udevice *dev)
>                 memcpy(pdata->enetaddr, env_enetaddr, ARP_HLEN);
>         } else if (is_valid_ethaddr(pdata->enetaddr)) {
>                 eth_env_set_enetaddr_by_index("eth", dev->seq, pdata->enetaddr);
> -               printf("\nWarning: %s using MAC address from ROM\n",
> -                      dev->name);

I also find this warning misleading:

Reviewed-by: Fabio Estevam <festevam at gmail.com>


More information about the U-Boot mailing list