aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/arm/ixp4xx_eth.c
diff options
context:
space:
mode:
authorKrzysztof Hałasa <khc@pm.waw.pl>2008-12-20 18:57:23 +0100
committerKrzysztof Hałasa <khc@pm.waw.pl>2008-12-22 00:42:55 +0100
commit4954936e25cb8ce99a96cac9dd9417d7b639867a (patch)
tree515bb79a5163e97de252103f325fde4f2568ef73 /drivers/net/arm/ixp4xx_eth.c
parent2098c18d6cf65358dd1620154bdedbc8c8d36f44 (diff)
downloadkernel_samsung_smdk4412-4954936e25cb8ce99a96cac9dd9417d7b639867a.zip
kernel_samsung_smdk4412-4954936e25cb8ce99a96cac9dd9417d7b639867a.tar.gz
kernel_samsung_smdk4412-4954936e25cb8ce99a96cac9dd9417d7b639867a.tar.bz2
IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'drivers/net/arm/ixp4xx_eth.c')
-rw-r--r--drivers/net/arm/ixp4xx_eth.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/arm/ixp4xx_eth.c b/drivers/net/arm/ixp4xx_eth.c
index db44ebb..1bbb7b8 100644
--- a/drivers/net/arm/ixp4xx_eth.c
+++ b/drivers/net/arm/ixp4xx_eth.c
@@ -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);
}