In commit 88dbec0707c9b21b1323adb3d4b751ba2a866901, stmmac_mdio.c
was updated. This doesn't work in branch v5.10/standard/x86 and
v5.10/standard/preempt-rt/x86, since the stmmac driver in those two
branches has been already updated to the latest verion in Linux
kernel v5.13.

Link: 
https://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto/diff/drivers/net/ethernet
/stmicro/stmmac/stmmac_mdio.c?h=v5.10/standard/x86&id=88dbec0707c9b21b1323adb3d4b751ba2a866901

Signed-off-by: Yongxin Liu <yongxin....@windriver.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 27 -----------------------
 1 file changed, 27 deletions(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 
b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
index 6e23f00bb2de..fc68eb67a258 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
@@ -569,38 +569,11 @@ int stmmac_mdio_register(struct net_device *ndev)
                goto no_phy_found;
        }
 
-       /* Try to probe the XPCS by scanning all addresses. */
-       if (priv->hw->xpcs) {
-               struct mdio_xpcs_args *xpcs = &priv->hw->xpcs_args;
-               int ret, mode = priv->plat->phy_interface;
-               max_addr = PHY_MAX_ADDR;
-
-               xpcs->bus = new_bus;
-
-               found = 0;
-               for (addr = 0; addr < max_addr; addr++) {
-                       xpcs->addr = addr;
-
-                       ret = stmmac_xpcs_probe(priv, xpcs, mode);
-                       if (!ret) {
-                               found = 1;
-                               break;
-                       }
-               }
-
-               if (!found && !mdio_node) {
-                       dev_warn(dev, "No XPCS found\n");
-                       err = -ENODEV;
-                       goto no_xpcs_found;
-               }
-       }
-
 bus_register_done:
        priv->mii = new_bus;
 
        return 0;
 
-no_xpcs_found:
 no_phy_found:
        mdiobus_unregister(new_bus);
 bus_register_fail:
-- 
2.14.5

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10144): 
https://lists.yoctoproject.org/g/linux-yocto/message/10144
Mute This Topic: https://lists.yoctoproject.org/mt/84347163/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to