diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-05-31 00:51:19 +0200 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-06-10 13:34:05 +0200 |
commit | fd5910288f7125cd4bf38c4a0df59ce8049703cf (patch) | |
tree | b6a6fa3ec57726dcc09749ad6911821a6892b924 | |
parent | 06173ef643c0c17124154598f9ffeea0c62eb627 (diff) | |
download | u-boot-fd5910288f7125cd4bf38c4a0df59ce8049703cf.zip u-boot-fd5910288f7125cd4bf38c4a0df59ce8049703cf.tar.gz u-boot-fd5910288f7125cd4bf38c4a0df59ce8049703cf.tar.bz2 |
net: altera_tsa: 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/altera_tse.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c index 912d28f..e234093 100644 --- a/drivers/net/altera_tse.c +++ b/drivers/net/altera_tse.c @@ -430,17 +430,11 @@ static int tse_mdio_init(const char *name, struct altera_tse_priv *priv) static int tse_phy_init(struct altera_tse_priv *priv, void *dev) { struct phy_device *phydev; - unsigned int mask = 0xffffffff; - if (priv->phyaddr) - mask = 1 << priv->phyaddr; - - phydev = phy_find_by_mask(priv->bus, mask); + phydev = phy_connect(priv->bus, -1, dev, priv->interface); if (!phydev) return -ENODEV; - phy_connect_dev(phydev, dev, priv->interface); - phydev->supported &= PHY_GBIT_FEATURES; phydev->advertising = phydev->supported; |