[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200129.114436.2049929524324371297.davem@davemloft.net>
Date: Wed, 29 Jan 2020 11:44:36 +0100 (CET)
From: David Miller <davem@...emloft.net>
To: johnathanx.mantey@...el.com
Cc: netdev@...r.kernel.org, sam@...dozajonas.com
Subject: Re: [PATCH ftgmac100:] Return link speed and duplex settings for
the NCSI channel
From: Johnathan Mantey <johnathanx.mantey@...el.com>
Date: Mon, 27 Jan 2020 11:17:50 -0800
> @@ -1218,10 +1218,30 @@ static int ftgmac100_set_pauseparam(struct
> net_device *netdev,
Please fix your email client so that the patch is not mangled like this.
> return 0;
> }
>
> +int ftgmac100_ethtool_get_link_ksettings(struct net_device *netdev,
> + struct ethtool_link_ksettings *cmd)
> +{
> + struct phy_device *phydev = netdev->phydev;
> + struct ftgmac100 *priv = netdev_priv(netdev);
> + int retval = 0;
> +
> + if (phydev) {
> + phy_ethtool_ksettings_get(phydev, cmd);
This should be retval = phy_ethtool_ksettings_get() otherwise error indications
will not propagate.
Powered by blists - more mailing lists