ramips: mt7621: support openwrt,netdev-name for renaming interfaces
authorRobert Marko <robimarko@gmail.com>
Sun, 24 Nov 2024 20:15:08 +0000 (21:15 +0100)
committerRobert Marko <robimarko@gmail.com>
Mon, 25 Nov 2024 15:41:30 +0000 (16:41 +0100)
commit5695267847c2fe51290fdbde6ecd7114654f7988
tree53efbf0e58c525176cba913e191418129a362270
parent72dec105fb99a949d7ecf2a3d0ac29880007d602
ramips: mt7621: support openwrt,netdev-name for renaming interfaces

Edgerouter X currently has its eth1 port on the switch missing since there
is a naming conflict currently.

So, as the root cause is mixing kernel support for DSA interfaces having
predictable names set via "label" property vs others having it assigned
dynamically lets avoid the conflict by using our own custom property as
suggested upstream [1].

So, add support via "openwrt,netdev-name" property and use it on ERX.

Fixes: 2a25c6ace8d8 ("ramips: get rid of downstream network device label patch")
Fixes: #15643
Link: https://github.com/openwrt/openwrt/pull/17062
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dts
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
target/linux/ramips/mt7621/base-files/lib/preinit/04_set_netdev_label