Skip to content

Commit

Permalink
IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver.
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
  • Loading branch information
Krzysztof Hałasa committed Dec 21, 2008
1 parent 2098c18 commit 4954936
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/arm/ixp4xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 4954936

Please sign in to comment.