[PATCH 06/14] net: sh_eth: Switch to new U-Boot PHY API
Ramon Fried
rfried.dev at gmail.com
Sat Jun 10 13:00:16 CEST 2023
On Wed, May 31, 2023 at 1:51 AM Marek Vasut
<marek.vasut+renesas at mailbox.org> wrote:
>
> Use new U-Boot phy_connect() API which also supports fixed PHYs.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
> ---
> Cc: Geert Uytterhoeven <geert+renesas at glider.be>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Michal Simek <michal.simek at amd.com>
> Cc: Nishanth Menon <nm at ti.com>
> Cc: Ramon Fried <rfried.dev at gmail.com>
> ---
> drivers/net/sh_eth.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
> index 8f162ca58fb..14f7fd1bcc0 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);
>
> --
> 2.39.2
>
Reviewed-by: Ramon Fried <rfried.dev at gmail.com>
More information about the U-Boot
mailing list