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:42:03 +0000 (16:42 +0100)
commit141ccfd5483d115beb8e81ff94b871f8516c3a18
tree4908f65f97599afc7a29496ef11d71f28771504b
parenta5b291116b282e9bad6ba289acb7af22c482ed0a
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>
(cherry picked from commit 5695267847c2fe51290fdbde6ecd7114654f7988)
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