]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: generate lan_list from device tree to avoid startup race 24092/head
authorEvan Kinney <evan@rawr.gay>
Wed, 17 Jun 2026 01:11:11 +0000 (21:11 -0400)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 6 Jul 2026 19:43:55 +0000 (21:43 +0200)
commit18e11e29a84dbe87f46928bf613623519d0881ae
tree9bbaac8293052b55f3e9a248cb735dc584ff6c3a
parent1d206717c57f0b3af9e0f9ef7888422836164830
realtek: generate lan_list from device tree to avoid startup race

Currently, 02_network discovers lan ports from /sys/class/net/lan*.
When booting on some devices, DSA ends up registering ports _after_
config generation has started, producing a board.json/network config
that is missing those ports.

Read labels from the device tree instead; they already exist as static
board data. If they are missing, fall back to the previous behavior.

Verified on a XikeStor SKS8300-8T (a rtl930x platform).

Signed-off-by: Evan Kinney <evan@rawr.gay>
(simplified lan enumeration)
Link: https://github.com/openwrt/openwrt/pull/24092
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/base-files/etc/board.d/02_network