Changeset 42492


Ignore:
Timestamp:
2014-09-12T08:52:07+02:00 (3 years ago)
Author:
blogic
Message:

atheros: ar231x-eth: remove useless IOCTL handlers

These IOCTLs handled in the core now.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@…>

Location:
trunk/target/linux/atheros/patches-3.14
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/atheros/patches-3.14/110-ar2313_ethernet.patch

    r42488 r42492  
    3434--- /dev/null 
    3535+++ b/drivers/net/ethernet/atheros/ar231x/ar231x.c 
    36 @@ -0,0 +1,1250 @@ 
     36@@ -0,0 +1,1231 @@ 
    3737+/* 
    3838+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device. 
     
    11391139+{ 
    11401140+       struct ar231x_private *sp = netdev_priv(dev); 
    1141 +       int ret; 
    11421141+ 
    11431142+       switch (cmd) { 
    1144 +       case SIOCETHTOOL: 
    1145 +               spin_lock_irq(&sp->lock); 
    1146 +               ret = phy_ethtool_ioctl(sp->phy_dev, (void *)ifr->ifr_data); 
    1147 +               spin_unlock_irq(&sp->lock); 
    1148 +               return ret; 
    1149 + 
    1150 +       case SIOCSIFHWADDR: 
    1151 +               if (copy_from_user 
    1152 +                       (dev->dev_addr, ifr->ifr_data, sizeof(dev->dev_addr))) 
    1153 +                       return -EFAULT; 
    1154 +               return 0; 
    1155 + 
    1156 +       case SIOCGIFHWADDR: 
    1157 +               if (copy_to_user 
    1158 +                       (ifr->ifr_data, dev->dev_addr, sizeof(dev->dev_addr))) 
    1159 +                       return -EFAULT; 
    1160 +               return 0; 
    1161 + 
    11621143+       case SIOCGMIIPHY: 
    11631144+       case SIOCGMIIREG: 
  • trunk/target/linux/atheros/patches-3.14/220-enet_micrel_workaround.patch

    r42488 r42492  
    8080        return 0; 
    8181 } 
    82 @@ -1104,6 +1151,9 @@ static int ar231x_ioctl(struct net_devic 
     82@@ -1103,6 +1150,9 @@ static int ar231x_ioctl(struct net_devic 
     83 { 
    8384        struct ar231x_private *sp = netdev_priv(dev); 
    84         int ret; 
    8585  
    8686+       if (!sp->phy_dev) 
     
    8888+ 
    8989        switch (cmd) { 
    90         case SIOCETHTOOL: 
    91                 spin_lock_irq(&sp->lock); 
     90        case SIOCGMIIPHY: 
     91        case SIOCGMIIREG: 
Note: See TracChangeset for help on using the changeset viewer.