diff options
| author | Vladimir Oltean <[email protected]> | 2021-03-14 20:14:56 +0800 |
|---|---|---|
| committer | Priyanka Jain <[email protected]> | 2021-04-15 14:22:17 +0530 |
| commit | 3c56251f2be7b5d816ad1a9db710d3e815825b4b (patch) | |
| tree | dbda8fd0d120de63270f326e356f95e528d915a6 | |
| parent | ec3b97e11d6b4202296c1b005a21e37d93bb9f74 (diff) | |
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: Vladimir Oltean <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Bin Meng <[email protected]>
Message-Id: <[email protected]>
[bmeng: split from "net: mdio: teach dm_eth_phy_connect to connect to fixed PHY"]
Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Reviewed-by: Priyanka Jain <[email protected]>
| -rw-r--r-- | drivers/net/tsec.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index ec486893725..f801d020fb6 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -707,11 +707,7 @@ static int init_phy(struct tsec_private *priv) tsec_configure_serdes(priv); #if defined(CONFIG_DM_ETH) && defined(CONFIG_DM_MDIO) - if (ofnode_valid(ofnode_find_subnode(dev_ofnode(priv->dev), - "fixed-link"))) - phydev = phy_connect(NULL, 0, priv->dev, priv->interface); - else - phydev = dm_eth_phy_connect(priv->dev); + phydev = dm_eth_phy_connect(priv->dev); #else phydev = phy_connect(priv->bus, priv->phyaddr, priv->dev, priv->interface); |
