[PATCH] net: fec: Keep device numbering consistent with datasheet
Andrew Lunn
andrew at lunn.ch
Wed Sep 23 15:17:33 EDT 2020
On Wed, Sep 23, 2020 at 04:25:28PM +0200, Stefan Riedmueller wrote:
> From: Christian Hemp <c.hemp at phytec.de>
>
> Make use of device tree alias for device enumeration to keep the device
> order consistent with the naming in the datasheet.
>
> Otherwise for the i.MX 6UL/ULL the ENET1 interface is enumerated as eth1
> and ENET2 as eth0.
What is wrong with that? Ethernet interface names have never been
guaranteed to be stable.
You have to be careful here. Have you reviewed all the DTS files to
make sure none already have aliases? You could be breaking boards
which currently 'work' because the alias is ignored.
udev is actually a better solution for giving the interfaces
dependable names.
Andrew
More information about the linux-arm-kernel
mailing list