generic: fix c45 soft reset for RTL8221B
authorMarkus Stockhausen <[email protected]>
Wed, 27 Aug 2025 17:51:55 +0000 (13:51 -0400)
committerHauke Mehrtens <[email protected]>
Fri, 29 Aug 2025 22:50:29 +0000 (00:50 +0200)
commita43330799b73522045335bb44c6808e931936022
tree154d150a5aa1a08f9dc661ed912658a9c200c627
parenta3d681d7f5dcb6cf9142a50e6ea55f79f25d276e
generic: fix c45 soft reset for RTL8221B

The addition of the soft_reset() function to the RTL8221B PHYs
missed to take care of C22/C45 standalone PHY versions. Especially
on RTL930x switch devices with these PHY the reset fails for the
C45 operation mode. This comes from the fact that the mdio bus
disables C22 read/writes when being set to C45.

Upstream has gained a proper C45 reset function. Use it for the
C45 PHY models.

Fixes: 7e3284eef7f ("generic: use genphy_soft_reset for RealTek 2.5G PHYs")
Signed-off-by: Markus Stockhausen <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19843
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/generic/pending-6.12/720-01-net-phy-realtek-use-genphy_soft_reset-for-2.5G-PHYs.patch
target/linux/generic/pending-6.12/720-06-net-phy-realtek-support-interrupt-of-RTL8221B.patch
target/linux/generic/pending-6.12/720-08-net-phy-realtek-work-around-broken-serdes.patch