mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-23 16:11:54 +00:00
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>
This commit is contained in:
parent
8f5abff522
commit
b9b04f8c5f
1 changed files with 1 additions and 4 deletions
|
@ -601,14 +601,11 @@ static int sh_eth_phy_config(struct udevice *dev)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct sh_eth_info *port_info = ð->port_info[eth->port];
|
struct sh_eth_info *port_info = ð->port_info[eth->port];
|
||||||
struct phy_device *phydev;
|
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)
|
if (!phydev)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
phy_connect_dev(phydev, dev, pdata->phy_interface);
|
|
||||||
|
|
||||||
port_info->phydev = phydev;
|
port_info->phydev = phydev;
|
||||||
phy_config(phydev);
|
phy_config(phydev);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue