airoha: support openwrt,netdev-name for renaming interfaces
authorKenneth Kasilag <[email protected]>
Mon, 20 Oct 2025 22:53:09 +0000 (22:53 +0000)
committerRobert Marko <[email protected]>
Wed, 29 Oct 2025 21:01:23 +0000 (22:01 +0100)
commit130306fab93656865178c5a9d40a08885f9d70d6
treec134b36060ebebe897f9fe53deef0b582f080734
parent120b70a6e267a23cc7675703b311a62769abe334
airoha: support openwrt,netdev-name for renaming interfaces

Add support to the airoha target for the OpenWrt-specific DT property
`openwrt,netdev-name`. In particular, this is for interfaces under
non-DSA `airoha_eth` interfaces.

This will avoid conflicts with upstream code[1]; and maintain forward
compatibility with OpenWrt configurations if/when `airoha_eth` becomes
a full DSA driver.

[1] https://lore.kernel.org/netdev/20240709124503.pubki5nwjfbedhhy@skbuf/

Borrowed from d4d6c48 (mediatek: filogic: support openwrt,netdev-name for renaming interfaces)

Signed-off-by: Kenneth Kasilag <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20475
Signed-off-by: Robert Marko <[email protected]>
target/linux/airoha/base-files/lib/preinit/04_set_netdev_label [new file with mode: 0755]