]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: mdio: prevent WARN_ONCE() during bus scan
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 10 Feb 2026 18:49:44 +0000 (19:49 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 13 Feb 2026 11:53:46 +0000 (12:53 +0100)
commitdf939b3316167b74b07a92816b641b67d7ecea75
tree0ca1c5ab695017bd22249a0bd7fcce9120ab6696
parentc092ca445a9a8ad1d21fb79a5c3974cb3455654a
realtek: mdio: prevent WARN_ONCE() during bus scan

The mdio bus detection will be changed from DTS based detection to
autoscan. To avoid spurious WARN_ONCE() messages return -EIO for
reads to register 2 during C22 scan when phy is on a c45 based bus.
The C45 rescan afterwards will detect the phy normally.

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