[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DB8PR04MB682813BEA5BF8D3F9A2E3F26E0EB0@DB8PR04MB6828.eurprd04.prod.outlook.com>
Date: Thu, 27 Feb 2020 16:03:15 +0000
From: Ioana Ciornei <ioana.ciornei@....com>
To: Russell King <rmk+kernel@...linux.org.uk>
CC: "David S. Miller" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH] dpaa2-eth: add support for mii ioctls
> Subject: [PATCH] dpaa2-eth: add support for mii ioctls
>
> Signed-off-by: Russell King <rmk+kernel@...linux.org.uk>
Acked-by: Ioana Ciornei <ioana.ciornei@....com>
> ---
> drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
> b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
> index 40290fea9e36..f1ab6bb5db5d 100644
> --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
> +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
> @@ -1704,10 +1704,15 @@ static int dpaa2_eth_ts_ioctl(struct net_device
> *dev, struct ifreq *rq, int cmd)
>
> static int dpaa2_eth_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) {
> + struct dpaa2_eth_priv *priv = netdev_priv(dev);
> +
> if (cmd == SIOCSHWTSTAMP)
> return dpaa2_eth_ts_ioctl(dev, rq, cmd);
>
> - return -EINVAL;
> + if (priv->mac)
> + return phylink_mii_ioctl(priv->mac->phylink, rq, cmd);
> +
> + return -EOPNOTSUPP;
> }
>
> static bool xdp_mtu_valid(struct dpaa2_eth_priv *priv, int mtu)
> --
> 2.20.1
Powered by blists - more mailing lists