]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: dsa: Keep HW specific mirror code in SoC helper
authorSven Eckelmann <se@simonwunderlich.de>
Tue, 15 Jul 2025 17:48:05 +0000 (19:48 +0200)
committerRobert Marko <robimarko@gmail.com>
Fri, 3 Oct 2025 17:25:26 +0000 (19:25 +0200)
commit8e2284857d386200cde05a34d934815896c44a8e
tree6d20f8721c8bf0df2004e1fcd5c242722c0e3101
parent0160ae86352709ece4d1356d063f351c7060ea7f
realtek: dsa: Keep HW specific mirror code in SoC helper

Instead of using a lot of if-else blocks in the port mirror code, provide
SoC specific function which calculates the SoC specific portions. The
generic part of the port mirroring code can then simply operate on the
calculated register addresses and values.

Suggested-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: Sven Eckelmann <se@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/20264
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/debugfs.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.h
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl839x.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl930x.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c