[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200906102516.5d1f4014@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Sun, 6 Sep 2020 10:25:16 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: netdev@...r.kernel.org, "David S . Miller" <davem@...emloft.net>,
Hans Ulli Kroll <ulli.kroll@...glemail.com>,
Andrew Lunn <andrew@...n.ch>
Subject: Re: [net-next PATCH v2] net: gemini: Clean up phy registration
On Sat, 5 Sep 2020 22:42:57 +0200 Linus Walleij wrote:
> diff --git a/drivers/net/ethernet/cortina/gemini.c b/drivers/net/ethernet/cortina/gemini.c
> index ffec0f3dd957..94707c9dda88 100644
> --- a/drivers/net/ethernet/cortina/gemini.c
> +++ b/drivers/net/ethernet/cortina/gemini.c
> @@ -2505,6 +2491,13 @@ static int gemini_ethernet_port_probe(struct platform_device *pdev)
> if (ret)
> goto unprepare;
>
> + ret = gmac_setup_phy(netdev);
> + if (ret) {
> + netdev_err(netdev,
> + "PHY init failed\n");
> + return ret;
goto unprepare?
> + }
> +
> ret = register_netdev(netdev);
> if (ret)
> goto unprepare;
Powered by blists - more mailing lists