[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230907142005.058383b8@pc-7.home>
Date: Thu, 7 Sep 2023 14:20:05 +0200
From: Maxime Chevallier <maxime.chevallier@...tlin.com>
To: "Russell King (Oracle)" <linux@...linux.org.uk>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Andrew Lunn <andrew@...n.ch>,
Jakub Kicinski <kuba@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>,
Vladimir Oltean <vladimir.oltean@....com>,
Oleksij Rempel <linux@...pel-privat.de>,
Nicolò Veronese <nicveronese@...il.com>,
thomas.petazzoni@...tlin.com,
Christophe Leroy <christophe.leroy@...roup.eu>
Subject: Re: [RFC PATCH net-next 6/7] net: ethtool: add a netlink command to
get PHY information
Hello Russell,
On Thu, 7 Sep 2023 11:04:56 +0100
"Russell King (Oracle)" <linux@...linux.org.uk> wrote:
> On Thu, Sep 07, 2023 at 11:24:04AM +0200, Maxime Chevallier wrote:
> > + data->phyindex = req_info->phyindex;
> > + data->drvname = phydev->drv->name;
> > + if (phydev->is_on_sfp_module)
>
> Please use the accessor provided:
>
> if (phy_on_sfp(phydev))
Ack, I'll switch to that then.
Thanks,
Maxime
Powered by blists - more mailing lists