source: trunk/target/linux/au1000/patches-3.2/003-au1000_eth_ioctl.patch @ 29939

Last change on this file since 29939 was 29939, checked in by florian, 4 years ago

[au1000] add support for 3.2 kernel

File size: 518 bytes
  • drivers/net/ethernet/amd/au1000_eth.c

    a b static void au1000_multicast_list(struct 
    991991        writel(reg, &aup->mac->control); 
    992992} 
    993993 
     994#define AU1000_KNOWN_PHY_IOCTLS        (SIOCGMIIPHY & 0xfff0) 
    994995static int au1000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) 
    995996{ 
    996997        struct au1000_private *aup = netdev_priv(dev); 
    997998 
     999        if((cmd & AU1000_KNOWN_PHY_IOCTLS) != AU1000_KNOWN_PHY_IOCTLS) 
     1000                return -EINVAL; 
     1001 
    9981002        if (!netif_running(dev)) 
    9991003                return -EINVAL; 
    10001004 
Note: See TracBrowser for help on using the repository browser.