realtek: 6.12: harden the mdio bus even more
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 3 Jun 2025 14:41:47 +0000 (10:41 -0400)
committerRobert Marko <robimarko@gmail.com>
Wed, 11 Jun 2025 20:27:22 +0000 (22:27 +0200)
commit65cf5b74c5c1cfd73e3315228fbac175fab5549c
tree2c65e85e2886f6d4666840fc1b49f8dfbb1cd397
parentdebb69ccb5cf5a0c677d27187af20ce7bcce2c18
realtek: 6.12: harden the mdio bus even more

With the follow up EEE patches the mdio bus will run c22 and c45
accesses during initial scan. Especially when accessing addresses
beyond the CPU port phy requests might fail in a way that cannot
be handled gratefully. Do two things

- do not allow access to addresses starting from cpu port
- set the scan disable bitmask to ports starting from cpu port

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18935
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c