realtek: adapt RTl931x "digital 2" serdes page calculation
authorMarkus Stockhausen <[email protected]>
Tue, 26 Aug 2025 13:41:11 +0000 (09:41 -0400)
committerHauke Mehrtens <[email protected]>
Mon, 1 Sep 2025 22:51:43 +0000 (00:51 +0200)
commit6802cd7f151f9bb6e59ed060c481e88323e58d27
tree6e2d408e3f411d01ac718e7122e278d12d4d3ce4
parent4063d904004b04f89be15cda1c6da93e971c88f2
realtek: adapt RTl931x "digital 2" serdes page calculation

The more we step down into the SerDes deeps the more confusing it
gets. Nevertheless it is not to late to fix a wrong assumption.
Until now it seemed as if the frontend/backend SerDes mapping is
totally without intersection. This is not true.

The backend SerDes mapping is also dependent on the mode. Especially
the proprietary Realtek XSGMII mode stands out from all other
mappings. So fix the descriptions and the calculation of the third
page package (digital 2 aka XSGMII 2).

As it was not yet used it had no impact.

Fixes: a4cbb44c1b ("realtek: convert access to RTL931x analog serdes pages")
Signed-off-by: Markus Stockhausen <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19873
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c