]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: mdio: setup polling for RTL8261 22109/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 20 Feb 2026 06:55:24 +0000 (07:55 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 20 Feb 2026 23:29:07 +0000 (00:29 +0100)
commit1ff39f9e986dbe99b2b1232cf0307437b20b41d2
treeaa5419aea03cc2e9387dcfe7de896f9ca1b41514
parentb270580deabb40fa7af702d35d32b1f9f80fd007
realtek: mdio: setup polling for RTL8261

Startup of mdio on a RTL8216 based device currently shows the
following warnings.

[1.948608] skip polling setup for unknown PHY 001ccaf3 on port 0
[1.968920] skip polling setup for unknown PHY 001ccaf3 on port 8
[1.989171] skip polling setup for unknown PHY 001ccaf3 on port 16
[2.009704] skip polling setup for unknown PHY 001ccaf3 on port 20
[2.030209] skip polling setup for unknown PHY 001ccaf3 on port 24
[2.052270] realtek-otto-serdes-mdio 1b000000.switchcore:mdio-serdes:
           Realtek SerDes mdio bus initialized, 12 SerDes, 64 pages

Add the phy detection to the mdio bus so that polling setup works.
While we are here sort the phy ids alphabetically.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22109
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c