]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: phy: optimize RTL8214FC register usage during media set
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 18 Jan 2026 12:05:30 +0000 (13:05 +0100)
committerRobert Marko <robimarko@gmail.com>
Sat, 24 Jan 2026 10:44:10 +0000 (11:44 +0100)
commit45fb8f9739272fc6d12ee4bc44cae5c217341a10
treed42c0dcd07bfe1cea796a2241cbd842641aa432e
parent121f4d90d0b5febe288b09d41c0232b343788339
realtek: phy: optimize RTL8214FC register usage during media set

There are some shortcomings in rtl8214fc_media_set()

- It always uses the mdio raw page (4095) of RTL838x for writes.
  That is wrong when the phy is attached to an RTL839x (raw = 8191)
- It uses the internal write only extended page companion (29)
- The extended page content is not preserved

Fix the three issues.

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