[U-Boot] [PATCH] net: eth-uclass: ignore unavailable devices

Joe Hershberger joe.hershberger at ni.com
Sat Nov 30 01:09:41 UTC 2019


On Mon, Oct 21, 2019 at 6:03 PM Michael Walle <michael at walle.cc> wrote:
>
> device_probe() may fail in which case the seq_id will be -1. Don't
> display these devices during startup. While this is only a cosmetic
> change, the return value of eth_initialize() will also change to the
> actual number of available devices. The return value is only used in
> spl_net to decide whether there are any devices to boot from. So
> returning only available devices is also more correct in that case.
>
> Signed-off-by: Michael Walle <michael at walle.cc>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list