IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
This commit is contained in:
parent
2098c18d6c
commit
4954936e25
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
static int eth_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
|
||||||
{
|
{
|
||||||
|
struct port *port = netdev_priv(dev);
|
||||||
|
|
||||||
if (!netif_running(dev))
|
if (!netif_running(dev))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
return -EINVAL;
|
return phy_mii_ioctl(port->phydev, if_mii(req), cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue