[PATCH] net: macb: set interface name based on DT aliases

Olof Johansson olof at lixom.net
Mon May 5 13:40:22 PDT 2014

On Wed, Mar 12, 2014 at 11:29:56AM +0100, Boris BREZILLON wrote:
> Use aliases to set the interface name (ethX) instead of automatic
> assignement.
> Signed-off-by: Boris BREZILLON <b.brezillon.dev at gmail.com>
> ---
> Hello Nicolas, Jean-Christophe,
> This is an example on how we could set the ethernet interface id based on DT
> aliases.
> As you can see this patch is not properly separated.
> I'm still not happy with this approach for several reasons:
> 1) If another ethernet iface has already been registered with the same id the
>    net dev registration will fail.
> 2) We bypass the ethernet macros/functions and directly use the net device
>    functions which IMHO is not future proof.

[Sorry for the late reply, going through old backlog of unread email]

Looks like this should live in networking core instead of in the driver, it's
how we handle it in other subsystems.

I don't know what DaveM's opinions on that is though.


More information about the linux-arm-kernel mailing list