Commit 3c56251f authored by Vladimir Oltean's avatar Vladimir Oltean Committed by Priyanka Jain
Browse files

net: tsec: Use dm_eth_phy_connect() directly for the DM case

Now that the fixed phy driver has been fully adapted to OF APIs,
and dm_eth_phy_connect() already can handle the fixed phy, call
dm_eth_phy_connect() directly in the DM tsec driver.
Signed-off-by: default avatarVladimir Oltean <>
Reviewed-by: Bin Meng's avatarBin Meng <>
Tested-by: Bin Meng's avatarBin Meng <>
Message-Id: <>
[bmeng: split from "net: mdio: teach dm_eth_phy_connect to connect to fixed PHY"]
Signed-off-by: Bin Meng's avatarBin Meng <>
Reviewed-by: default avatarVladimir Oltean <>
Reviewed-by: Priyanka Jain's avatarPriyanka Jain <>
parent ec3b97e1
......@@ -707,11 +707,7 @@ static int init_phy(struct tsec_private *priv)
#if defined(CONFIG_DM_ETH) && defined(CONFIG_DM_MDIO)
if (ofnode_valid(ofnode_find_subnode(dev_ofnode(priv->dev),
phydev = phy_connect(NULL, 0, priv->dev, priv->interface);
phydev = dm_eth_phy_connect(priv->dev);
phydev = dm_eth_phy_connect(priv->dev);
phydev = phy_connect(priv->bus, priv->phyaddr, priv->dev,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment