On Mon, Apr 04, 2022 at 02:40:00PM +0300, Arınç ÜNAL wrote:
From: René van Dorst <opensource@xxxxxxxxxx>
Add label support for GMACs. The network interface of the GMAC will have
the string of the label property defined on the devicetree as its name.
Sorry, but no. This has been discussed a few times, you need something
in user space, udev or systemd etc to set interface names.
Please look back in the archive at previous discussions.
I agree with Russell here. I doubt this is going to be accepted.
DSA is special because DSA is very old, much older than DT, and maybe
older than udev. The old DSA platform drivers had a mechanism to
supply the interface name to the DSA core. When we added a DT binding
to DSA we kept that mechanism, since that mechanism had been used for
a long time.
Even if you could show there was a generic old mechanism, from before
the days of DT, that allowed interface names to be set from platform
drivers, i doubt it would be accepted because there is no continuity,
which DSA has.