[PATCH] netdev: add support for interface name retrieval from DT aliases
David Miller
davem at davemloft.net
Thu May 8 19:42:52 PDT 2014
From: Boris BREZILLON <boris.brezillon at free-electrons.com>
Date: Tue, 6 May 2014 17:36:34 +0200
> There is currently no proper way to bind a net interface to a specific
> name. The interface name is chosen based on the interface type (eth,
> wlan, ...) and the interfaces already registered (the core codes takes
> the first unused interface id of the given type).
>
> Add support for DT retrieval of the interface id based on DT aliases.
> The alias name must match the interface type (e.g. ethX if you're defining
> an ethernet dev alias).
>
> Signed-off-by: Boris BREZILLON <boris.brezillon at free-electrons.com>
This really isn't kosher at all.
And there absolutely is a proper way to bind a net interface to
a specific name, udev has provided this facility for years.
I'm not applying this, sorry.
More information about the linux-arm-kernel
mailing list