[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1593029669.1081007.1744804743217.JavaMail.zimbra@couthit.local>
Date: Wed, 16 Apr 2025 17:29:03 +0530 (IST)
From: Parvathi Pudi <parvathi@...thit.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: parvathi <parvathi@...thit.com>, danishanwar <danishanwar@...com>,
rogerq <rogerq@...nel.org>, andrew+netdev <andrew+netdev@...n.ch>,
davem <davem@...emloft.net>, edumazet <edumazet@...gle.com>,
kuba <kuba@...nel.org>, pabeni <pabeni@...hat.com>,
robh <robh@...nel.org>, krzk+dt <krzk+dt@...nel.org>,
conor+dt <conor+dt@...nel.org>, nm <nm@...com>,
ssantosh <ssantosh@...nel.org>, tony <tony@...mide.com>,
richardcochran <richardcochran@...il.com>,
glaroque <glaroque@...libre.com>, schnelle <schnelle@...ux.ibm.com>,
m-karicheri2 <m-karicheri2@...com>, s hauer <s.hauer@...gutronix.de>,
rdunlap <rdunlap@...radead.org>, diogo ivo <diogo.ivo@...mens.com>,
basharath <basharath@...thit.com>, horms <horms@...nel.org>,
jacob e keller <jacob.e.keller@...el.com>,
m-malladi <m-malladi@...com>,
javier carrasco cruz <javier.carrasco.cruz@...il.com>,
afd <afd@...com>, s-anna <s-anna@...com>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
netdev <netdev@...r.kernel.org>,
devicetree <devicetree@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
pratheesh <pratheesh@...com>, Prajith Jayarajan <prajith@...com>,
Vignesh Raghavendra <vigneshr@...com>, praneeth <praneeth@...com>,
srk <srk@...com>, rogerq <rogerq@...com>,
krishna <krishna@...thit.com>, pmohan <pmohan@...thit.com>,
mohan <mohan@...thit.com>
Subject: Re: [PATCH net-next v5 05/11] net: ti: prueth: Adds ethtool support
for ICSSM PRUETH Driver
Hi,
>> +static int icssm_emac_get_link_ksettings(struct net_device *ndev,
>> + struct ethtool_link_ksettings *ecmd)
>> +{
>> + return phy_ethtool_get_link_ksettings(ndev, ecmd);
>> +}
>> +
>
>> +static int
>> +icssm_emac_set_link_ksettings(struct net_device *ndev,
>> + const struct ethtool_link_ksettings *ecmd)
>> +{
>> + return phy_ethtool_set_link_ksettings(ndev, ecmd);
>> +}
>
>> +/* Ethtool support for EMAC adapter */
>> +const struct ethtool_ops emac_ethtool_ops = {
>> + .get_drvinfo = icssm_emac_get_drvinfo,
>> + .get_link_ksettings = icssm_emac_get_link_ksettings,
>> + .set_link_ksettings = icssm_emac_set_link_ksettings,
>
> The wrappers don't do anything, so why not just use
> phy_ethtool_get_link_ksettings() and phy_ethtool_set_link_ksettings()
> directly?
>
> Andrew
Yes, the wrapper API does the same. We will clean this in the next version.
Thanks and Regards,
Parvathi.
Powered by blists - more mailing lists