From: Marek Vasut Date: Tue, 30 May 2023 22:51:23 +0000 (+0200) Subject: net: sh_eth: Switch to new U-Boot PHY API X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=b9b04f8c5f66c39ffc24b68d2175c40faed56c9e;p=u-boot.git 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 Reviewed-by: Ramon Fried --- diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 8f162ca58f..14f7fd1bcc 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 = ð->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);