diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-05-31 00:51:22 +0200 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-06-10 13:34:05 +0200 |
commit | 8f5abff5221f42fe1478964f2fd4a19580c76f70 (patch) | |
tree | 99a8aff414c95298c74854bb94c141ae0a5176b1 | |
parent | 8869a8883be80e1430da09095147b795848e6ba9 (diff) | |
download | u-boot-8f5abff5221f42fe1478964f2fd4a19580c76f70.zip u-boot-8f5abff5221f42fe1478964f2fd4a19580c76f70.tar.gz u-boot-8f5abff5221f42fe1478964f2fd4a19580c76f70.tar.bz2 |
net: pch_gbe: 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/pch_gbe.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/pch_gbe.c b/drivers/net/pch_gbe.c index ad7b5b8..ecf8c28 100644 --- a/drivers/net/pch_gbe.c +++ b/drivers/net/pch_gbe.c @@ -414,16 +414,13 @@ static int pch_gbe_phy_init(struct udevice *dev) struct pch_gbe_priv *priv = dev_get_priv(dev); struct eth_pdata *plat = dev_get_plat(dev); struct phy_device *phydev; - int mask = 0xffffffff; - phydev = phy_find_by_mask(priv->bus, mask); + phydev = phy_connect(priv->bus, -1, dev, plat->phy_interface); if (!phydev) { printf("pch_gbe: cannot find the phy\n"); return -1; } - phy_connect_dev(phydev, dev, plat->phy_interface); - phydev->supported &= PHY_GBIT_FEATURES; phydev->advertising = phydev->supported; |