openwrt-mirror/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx
Markus Stockhausen 40d70c9c81 realtek: dsa: do not open code PHY access
The DSA has a link to the MDIO bus and already uses the read/write functions
that are provided. In parallel the dsa_switch_ops structure provides an
interface for phy_read and phy_write. These are still open-coded and sadly
circumvent the bus. Simplify the implementation and avoid inconsistencies by
reusing the existing bus infrastructure.

Additionally, remove two unused MMD header definitions as a quick win.

Reported-by: Jan Hoffmann <jan@3e8.eu>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19548
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-07-31 22:00:25 +02:00
..
common.c realtek: dsa: do not open code PHY access 2025-07-31 22:00:25 +02:00
debugfs.c realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00
dsa.c realtek: dsa: do not open code PHY access 2025-07-31 22:00:25 +02:00
Kconfig realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00
Makefile realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00
qos.c realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00
rtl83xx.h realtek: dsa: do not open code PHY access 2025-07-31 22:00:25 +02:00
rtl838x.c realtek: mdio: RTL838x: move functions over to bus 2025-07-26 15:46:31 +02:00
rtl838x.h realtek: implement polling for hardware counters 2025-07-27 16:46:20 +02:00
rtl839x.c realtek: 6.12: align internal/external mac eee function names 2025-06-11 22:27:22 +02:00
rtl930x.c realtek: fix ethtool stats for RTL839x and RTL930x 2025-07-27 16:46:19 +02:00
rtl931x.c realtek: rtl931x: Fix printing of port matrix 2025-07-31 21:59:24 +02:00
tc.c realtek: 6.12: create files-6.12 from files-6.6 2025-06-11 22:27:21 +02:00