[U-Boot] [PATCH v5 19/27] dm: eth: Add support for aliases

Simon Glass sjg at chromium.org
Wed Mar 4 19:35:30 CET 2015


On 3 March 2015 at 19:41, Joe Hershberger <joe.hershberger at ni.com> wrote:
> Allow network devices to be referred to as "eth0" instead of
> "eth at 12345678" when specified in ethact.
>
> Add tests to verify this behavior.
>
> Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> ---
>
> Changes in v5:
> -Added a comment about devname
> -Only check for alias if the name is long enough

Reviewed-by: Simon Glass <sjg at chromium.org>


>
> Changes in v4:
> -Use only the seq from DM to find aliases
>
> Changes in v3:
> -Added support for aliases
>
> Changes in v2: None
>
>  include/configs/sandbox.h |  2 +-
>  include/net.h             |  5 +++++
>  net/eth.c                 | 50 ++++++++++++++++++++++++++++++++++++++---------
>  test/dm/eth.c             | 24 +++++++++++++++++++++++
>  test/dm/test.dts          |  4 +++-
>  5 files changed, 74 insertions(+), 11 deletions(-)
>


More information about the U-Boot mailing list