mirror of
https://xff.cz/git/u-boot/
synced 2026-01-06 04:19:17 +01:00
net: ave: 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>
This commit is contained in:
@@ -391,14 +391,12 @@ static int ave_mdiobus_init(struct ave_private *priv, const char *name)
|
||||
static int ave_phy_init(struct ave_private *priv, void *dev)
|
||||
{
|
||||
struct phy_device *phydev;
|
||||
int mask = GENMASK(31, 0), ret;
|
||||
int ret;
|
||||
|
||||
phydev = phy_find_by_mask(priv->bus, mask);
|
||||
phydev = phy_connect(priv->bus, -1, dev, priv->phy_mode);
|
||||
if (!phydev)
|
||||
return -ENODEV;
|
||||
|
||||
phy_connect_dev(phydev, dev, priv->phy_mode);
|
||||
|
||||
phydev->supported &= PHY_GBIT_FEATURES;
|
||||
if (priv->max_speed) {
|
||||
ret = phy_set_supported(phydev, priv->max_speed);
|
||||
|
||||
Reference in New Issue
Block a user