[OpenWrt-Devel,2/6] ramips: ethernet: remove unused SIOCETHTOOL ioctl handling
diff mbox series

Message ID 1558785521-31779-3-git-send-email-ynezz@true.cz
State Under Review, archived
Delegated to: Petr Štetiar
Headers show
Series
  • ar71xx, ath79, ramips: ethtool fixes and cleanup (FS#1982)
Related show

Commit Message

Petr Štetiar May 25, 2019, 11:58 a.m. UTC
This ioctl is currently routed through generic interface code.

  dev_ioctl
    dev_ethtool
      __ethtool_get_link_ksettings
        phy_ethtool_ioctl

Cc: Felix Fietkau <nbd@nbd.name>
Cc: John Crispin <john@phrozen.org>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
 .../files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c  | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

Patch
diff mbox series

diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index 10d9fd7a3e67..b2c3d32c5549 100644
--- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -1411,19 +1411,8 @@  static int fe_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 	if (!priv->phy_dev)
 		return -ENODEV;
 
-	switch (cmd) {
-	case SIOCETHTOOL:
-		return phy_ethtool_ioctl(priv->phy_dev,
-				(void *) ifr->ifr_data);
-	case SIOCGMIIPHY:
-	case SIOCGMIIREG:
-	case SIOCSMIIREG:
-		return phy_mii_ioctl(priv->phy_dev, ifr, cmd);
-	default:
-		break;
-	}
 
-	return -EOPNOTSUPP;
+	return phy_mii_ioctl(priv->phy_dev, ifr, cmd);
 }
 
 static int fe_change_mtu(struct net_device *dev, int new_mtu)