]> git.ipfire.org Git - thirdparty/openwrt.git/commit
qualcommax: qca_edma: give the DSA conduit a stable MAC address 24512/head
authorJulius Bairaktaris <julius@bairaktaris.de>
Fri, 31 Jul 2026 22:27:46 +0000 (00:27 +0200)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 2 Aug 2026 09:17:46 +0000 (11:17 +0200)
commit123cd0466af1d655570980346974c6cd2b8785f5
tree0395fe350fc1aa88a0beba802a5fb956bc7bea7c
parentd3191cb05603359991ecb8336662cc5408d9c2f9
qualcommax: qca_edma: give the DSA conduit a stable MAC address

edma_probe() assigns a random address unconditionally, so the conduit
changes its MAC on every boot, and with it every DSA user port that has
no address of its own and therefore inherits the conduit's.

The conduit is a DMA engine behind the switch and has no address of its
own, which is why no board describes one for it. Take the address from
the switch this conduit serves instead: its ports carry the board's
addresses, either from DT or patched in by the bootloader, so this needs
nothing added per board. Keep the random address for the case where the
switch describes no address either.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/24512
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/qualcommax/files/drivers/net/ethernet/qualcomm/qca_edma.c