* [PATCH] net/phy: Delete unused function phy_ethtool_gset
@ 2017-06-04 17:10 Yuval Shaia
2017-06-04 17:20 ` Florian Fainelli
0 siblings, 1 reply; 2+ messages in thread
From: Yuval Shaia @ 2017-06-04 17:10 UTC (permalink / raw)
To: andrew, f.fainelli, netdev, yuval.shaia
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
---
drivers/net/phy/phy.c | 24 ------------------------
include/linux/phy.h | 1 -
2 files changed, 25 deletions(-)
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 9c372bf..8e26af5 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -484,30 +484,6 @@ int phy_ethtool_ksettings_set(struct phy_device *phydev,
}
EXPORT_SYMBOL(phy_ethtool_ksettings_set);
-int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd)
-{
- cmd->supported = phydev->supported;
-
- cmd->advertising = phydev->advertising;
- cmd->lp_advertising = phydev->lp_advertising;
-
- ethtool_cmd_speed_set(cmd, phydev->speed);
- cmd->duplex = phydev->duplex;
- if (phydev->interface == PHY_INTERFACE_MODE_MOCA)
- cmd->port = PORT_BNC;
- else
- cmd->port = PORT_MII;
- cmd->phy_address = phydev->mdio.addr;
- cmd->transceiver = phy_is_internal(phydev) ?
- XCVR_INTERNAL : XCVR_EXTERNAL;
- cmd->autoneg = phydev->autoneg;
- cmd->eth_tp_mdix_ctrl = phydev->mdix_ctrl;
- cmd->eth_tp_mdix = phydev->mdix;
-
- return 0;
-}
-EXPORT_SYMBOL(phy_ethtool_gset);
-
void phy_ethtool_ksettings_get(struct phy_device *phydev,
struct ethtool_link_ksettings *cmd)
{
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 4ec07a6..804851c 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -843,7 +843,6 @@ void phy_start_machine(struct phy_device *phydev);
void phy_stop_machine(struct phy_device *phydev);
void phy_trigger_machine(struct phy_device *phydev, bool sync);
int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd);
-int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd);
void phy_ethtool_ksettings_get(struct phy_device *phydev,
struct ethtool_link_ksettings *cmd);
int phy_ethtool_ksettings_set(struct phy_device *phydev,
--
2.9.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] net/phy: Delete unused function phy_ethtool_gset
2017-06-04 17:10 [PATCH] net/phy: Delete unused function phy_ethtool_gset Yuval Shaia
@ 2017-06-04 17:20 ` Florian Fainelli
0 siblings, 0 replies; 2+ messages in thread
From: Florian Fainelli @ 2017-06-04 17:20 UTC (permalink / raw)
To: Yuval Shaia, andrew, netdev
On 06/04/2017 10:10 AM, Yuval Shaia wrote:
> Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
A commit message that just says: it's unused, so remove it would be
nice. You seem to have missed Documentation/networking/phy.txt in this
patch, do you mind resubmitting with that fixed?
Finally, the subject should be:
net: phy: Delete unused function phy_ethtool_gset
to be (semi) consistent with past submissions done to these files. Thanks!
> ---
> drivers/net/phy/phy.c | 24 ------------------------
> include/linux/phy.h | 1 -
> 2 files changed, 25 deletions(-)
>
> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
> index 9c372bf..8e26af5 100644
> --- a/drivers/net/phy/phy.c
> +++ b/drivers/net/phy/phy.c
> @@ -484,30 +484,6 @@ int phy_ethtool_ksettings_set(struct phy_device *phydev,
> }
> EXPORT_SYMBOL(phy_ethtool_ksettings_set);
>
> -int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd)
> -{
> - cmd->supported = phydev->supported;
> -
> - cmd->advertising = phydev->advertising;
> - cmd->lp_advertising = phydev->lp_advertising;
> -
> - ethtool_cmd_speed_set(cmd, phydev->speed);
> - cmd->duplex = phydev->duplex;
> - if (phydev->interface == PHY_INTERFACE_MODE_MOCA)
> - cmd->port = PORT_BNC;
> - else
> - cmd->port = PORT_MII;
> - cmd->phy_address = phydev->mdio.addr;
> - cmd->transceiver = phy_is_internal(phydev) ?
> - XCVR_INTERNAL : XCVR_EXTERNAL;
> - cmd->autoneg = phydev->autoneg;
> - cmd->eth_tp_mdix_ctrl = phydev->mdix_ctrl;
> - cmd->eth_tp_mdix = phydev->mdix;
> -
> - return 0;
> -}
> -EXPORT_SYMBOL(phy_ethtool_gset);
> -
> void phy_ethtool_ksettings_get(struct phy_device *phydev,
> struct ethtool_link_ksettings *cmd)
> {
> diff --git a/include/linux/phy.h b/include/linux/phy.h
> index 4ec07a6..804851c 100644
> --- a/include/linux/phy.h
> +++ b/include/linux/phy.h
> @@ -843,7 +843,6 @@ void phy_start_machine(struct phy_device *phydev);
> void phy_stop_machine(struct phy_device *phydev);
> void phy_trigger_machine(struct phy_device *phydev, bool sync);
> int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd);
> -int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd);
> void phy_ethtool_ksettings_get(struct phy_device *phydev,
> struct ethtool_link_ksettings *cmd);
> int phy_ethtool_ksettings_set(struct phy_device *phydev,
>
--
Florian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-04 17:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-04 17:10 [PATCH] net/phy: Delete unused function phy_ethtool_gset Yuval Shaia
2017-06-04 17:20 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox