From: Krzysztof Hałasa Date: Sat, 20 Dec 2008 17:57:23 +0000 (+0100) Subject: IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver. X-Git-Tag: MMI-PSA29.97-13-9~30474^2~62^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4954936e25cb8ce99a96cac9dd9417d7b639867a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver. Signed-off-by: Krzysztof Hałasa --- diff --git a/drivers/net/arm/ixp4xx_eth.c b/drivers/net/arm/ixp4xx_eth.c index db44ebbf45c5..1bbb7b8cb0da 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); }