File tree Expand file tree Collapse file tree 5 files changed +5
-49
lines changed Expand file tree Collapse file tree 5 files changed +5
-49
lines changed Original file line number Diff line number Diff line change @@ -3651,15 +3651,6 @@ static int et131x_close(struct net_device *netdev)
3651
3651
return del_timer_sync (& adapter -> error_timer );
3652
3652
}
3653
3653
3654
- static int et131x_ioctl (struct net_device * netdev , struct ifreq * reqbuf ,
3655
- int cmd )
3656
- {
3657
- if (!netdev -> phydev )
3658
- return - EINVAL ;
3659
-
3660
- return phy_mii_ioctl (netdev -> phydev , reqbuf , cmd );
3661
- }
3662
-
3663
3654
/* et131x_set_packet_filter - Configures the Rx Packet filtering */
3664
3655
static int et131x_set_packet_filter (struct et131x_adapter * adapter )
3665
3656
{
@@ -3899,7 +3890,7 @@ static const struct net_device_ops et131x_netdev_ops = {
3899
3890
.ndo_set_mac_address = eth_mac_addr ,
3900
3891
.ndo_validate_addr = eth_validate_addr ,
3901
3892
.ndo_get_stats = et131x_stats ,
3902
- .ndo_do_ioctl = et131x_ioctl ,
3893
+ .ndo_do_ioctl = phy_do_ioctl ,
3903
3894
};
3904
3895
3905
3896
static int et131x_pci_setup (struct pci_dev * pdev ,
Original file line number Diff line number Diff line change @@ -1394,14 +1394,6 @@ static netdev_tx_t ag71xx_hard_start_xmit(struct sk_buff *skb,
1394
1394
return NETDEV_TX_OK ;
1395
1395
}
1396
1396
1397
- static int ag71xx_do_ioctl (struct net_device * ndev , struct ifreq * ifr , int cmd )
1398
- {
1399
- if (!ndev -> phydev )
1400
- return - EINVAL ;
1401
-
1402
- return phy_mii_ioctl (ndev -> phydev , ifr , cmd );
1403
- }
1404
-
1405
1397
static void ag71xx_oom_timer_handler (struct timer_list * t )
1406
1398
{
1407
1399
struct ag71xx * ag = from_timer (ag , t , oom_timer );
@@ -1618,7 +1610,7 @@ static const struct net_device_ops ag71xx_netdev_ops = {
1618
1610
.ndo_open = ag71xx_open ,
1619
1611
.ndo_stop = ag71xx_stop ,
1620
1612
.ndo_start_xmit = ag71xx_hard_start_xmit ,
1621
- .ndo_do_ioctl = ag71xx_do_ioctl ,
1613
+ .ndo_do_ioctl = phy_do_ioctl ,
1622
1614
.ndo_tx_timeout = ag71xx_tx_timeout ,
1623
1615
.ndo_change_mtu = ag71xx_change_mtu ,
1624
1616
.ndo_set_mac_address = eth_mac_addr ,
Original file line number Diff line number Diff line change @@ -1536,15 +1536,6 @@ static int ftgmac100_stop(struct net_device *netdev)
1536
1536
return 0 ;
1537
1537
}
1538
1538
1539
- /* optional */
1540
- static int ftgmac100_do_ioctl (struct net_device * netdev , struct ifreq * ifr , int cmd )
1541
- {
1542
- if (!netdev -> phydev )
1543
- return - ENXIO ;
1544
-
1545
- return phy_mii_ioctl (netdev -> phydev , ifr , cmd );
1546
- }
1547
-
1548
1539
static void ftgmac100_tx_timeout (struct net_device * netdev , unsigned int txqueue )
1549
1540
{
1550
1541
struct ftgmac100 * priv = netdev_priv (netdev );
@@ -1597,7 +1588,7 @@ static const struct net_device_ops ftgmac100_netdev_ops = {
1597
1588
.ndo_start_xmit = ftgmac100_hard_start_xmit ,
1598
1589
.ndo_set_mac_address = ftgmac100_set_mac_addr ,
1599
1590
.ndo_validate_addr = eth_validate_addr ,
1600
- .ndo_do_ioctl = ftgmac100_do_ioctl ,
1591
+ .ndo_do_ioctl = phy_do_ioctl ,
1601
1592
.ndo_tx_timeout = ftgmac100_tx_timeout ,
1602
1593
.ndo_set_rx_mode = ftgmac100_set_rx_mode ,
1603
1594
.ndo_set_features = ftgmac100_set_features ,
Original file line number Diff line number Diff line change @@ -785,24 +785,14 @@ static const struct ethtool_ops mpc52xx_fec_ethtool_ops = {
785
785
};
786
786
787
787
788
- static int mpc52xx_fec_ioctl (struct net_device * dev , struct ifreq * rq , int cmd )
789
- {
790
- struct phy_device * phydev = dev -> phydev ;
791
-
792
- if (!phydev )
793
- return - ENOTSUPP ;
794
-
795
- return phy_mii_ioctl (phydev , rq , cmd );
796
- }
797
-
798
788
static const struct net_device_ops mpc52xx_fec_netdev_ops = {
799
789
.ndo_open = mpc52xx_fec_open ,
800
790
.ndo_stop = mpc52xx_fec_close ,
801
791
.ndo_start_xmit = mpc52xx_fec_start_xmit ,
802
792
.ndo_set_rx_mode = mpc52xx_fec_set_multicast_list ,
803
793
.ndo_set_mac_address = mpc52xx_fec_set_mac_address ,
804
794
.ndo_validate_addr = eth_validate_addr ,
805
- .ndo_do_ioctl = mpc52xx_fec_ioctl ,
795
+ .ndo_do_ioctl = phy_do_ioctl ,
806
796
.ndo_tx_timeout = mpc52xx_fec_tx_timeout ,
807
797
.ndo_get_stats = mpc52xx_fec_get_stats ,
808
798
#ifdef CONFIG_NET_POLL_CONTROLLER
Original file line number Diff line number Diff line change @@ -498,14 +498,6 @@ static int r6040_close(struct net_device *dev)
498
498
return 0 ;
499
499
}
500
500
501
- static int r6040_ioctl (struct net_device * dev , struct ifreq * rq , int cmd )
502
- {
503
- if (!dev -> phydev )
504
- return - EINVAL ;
505
-
506
- return phy_mii_ioctl (dev -> phydev , rq , cmd );
507
- }
508
-
509
501
static int r6040_rx (struct net_device * dev , int limit )
510
502
{
511
503
struct r6040_private * priv = netdev_priv (dev );
@@ -957,7 +949,7 @@ static const struct net_device_ops r6040_netdev_ops = {
957
949
.ndo_set_rx_mode = r6040_multicast_list ,
958
950
.ndo_validate_addr = eth_validate_addr ,
959
951
.ndo_set_mac_address = eth_mac_addr ,
960
- .ndo_do_ioctl = r6040_ioctl ,
952
+ .ndo_do_ioctl = phy_do_ioctl ,
961
953
.ndo_tx_timeout = r6040_tx_timeout ,
962
954
#ifdef CONFIG_NET_POLL_CONTROLLER
963
955
.ndo_poll_controller = r6040_poll_controller ,
You can’t perform that action at this time.
0 commit comments