aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-05-31 00:51:23 +0200
committerMarek Vasut <marek.vasut+renesas@mailbox.org>2023-06-10 13:34:05 +0200
commitb9b04f8c5f66c39ffc24b68d2175c40faed56c9e (patch)
tree3c113b66b8e204bd2212dee8e008fbfc58b1a492
parent8f5abff5221f42fe1478964f2fd4a19580c76f70 (diff)
downloadu-boot-b9b04f8c5f66c39ffc24b68d2175c40faed56c9e.zip
u-boot-b9b04f8c5f66c39ffc24b68d2175c40faed56c9e.tar.gz
u-boot-b9b04f8c5f66c39ffc24b68d2175c40faed56c9e.tar.bz2
net: sh_eth: Switch to new U-Boot PHY API
Use new U-Boot phy_connect() API which also supports fixed PHYs. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
-rw-r--r--drivers/net/sh_eth.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index 8f162ca..14f7fd1 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -601,14 +601,11 @@ static int sh_eth_phy_config(struct udevice *dev)
int ret = 0;
struct sh_eth_info *port_info = &eth->port_info[eth->port];
struct phy_device *phydev;
- int mask = 0xffffffff;
- phydev = phy_find_by_mask(priv->bus, mask);
+ phydev = phy_connect(priv->bus, -1, dev, pdata->phy_interface);
if (!phydev)
return -ENODEV;
- phy_connect_dev(phydev, dev, pdata->phy_interface);
-
port_info->phydev = phydev;
phy_config(phydev);