IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver.
Krzysztof Hałasa [Sat, 20 Dec 2008 17:57:23 +0000 (18:57 +0100)]
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>

drivers/net/arm/ixp4xx_eth.c

index db44ebb..1bbb7b8 100644 (file)
@@ -788,9 +788,11 @@ static void eth_set_mcast_list(struct net_device *dev)
 
 static int eth_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
 {
+       struct port *port = netdev_priv(dev);
+
        if (!netif_running(dev))
                return -EINVAL;
-       return -EINVAL;
+       return phy_mii_ioctl(port->phydev, if_mii(req), cmd);
 }