Patchwork [RFC] IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver.

login
register
mail settings
Submitter Krzysztof Halasa
Date Dec. 21, 2008, 1:15 a.m.
Message ID <m3ocz6ba67.fsf@maximus.localdomain>
Download mbox | patch
Permalink /patch/15090/
State RFC
Delegated to: David Miller
Headers show

Comments

Krzysztof Halasa - Dec. 21, 2008, 1:15 a.m.
Few patches I'm posting for review only.

Not for operational use.

IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver.

Patch

--- a/drivers/net/arm/ixp4xx_eth.c
+++ b/drivers/net/arm/ixp4xx_eth.c
@@ -789,9 +789,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);
 }