]> git.ipfire.org Git - thirdparty/openwrt.git/commit
ramips: ethernet: ralink: add mediatek,no-swconfig property 23933/head
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Wed, 3 Jun 2026 14:51:29 +0000 (16:51 +0200)
committerRobert Marko <robimarko@gmail.com>
Mon, 29 Jun 2026 12:54:58 +0000 (14:54 +0200)
commit0a64c7a7b6d9ca5805a9a5ff2067b6694dbc5010
tree54304f225dbeb8d15bb630df8447e079168254a3
parent3c0a73b4d202f61b796a10551ed07ce55a7f90c0
ramips: ethernet: ralink: add mediatek,no-swconfig property

Skip swconfig registration and disable MAC learning when the
"mediatek,no-swconfig" property is set. This is needed for MT7620
devices using the internal switch as a transparent bridge to an
external RGMII switch, where ports 0-4 are unused.

The no-swconfig property itself is valid for both DSA and non-DSA
setups. However, disabling MAC learning is only required for DSA,
where multiple CPU-facing interfaces would otherwise cause an
incorrect ARL table to be built. Non-DSA setups work correctly
without disabling MAC learning.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/23933
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c