davinci_emac: pass ioctls through to phy device.
[deliverable/linux.git] / drivers / net / davinci_emac.c
index dcc4a170b0f397ed5362341a8d5a62fb07d411a4..5c2baa4f785afcea4c86d583270e51ce4143fc96 100644 (file)
@@ -1489,14 +1489,14 @@ static void emac_adjust_link(struct net_device *ndev)
  */
 static int emac_devioctl(struct net_device *ndev, struct ifreq *ifrq, int cmd)
 {
-       dev_warn(&ndev->dev, "DaVinci EMAC: ioctl not supported\n");
+       struct emac_priv *priv = netdev_priv(ndev);
 
        if (!(netif_running(ndev)))
                return -EINVAL;
 
        /* TODO: Add phy read and write and private statistics get feature */
 
-       return -EOPNOTSUPP;
+       return phy_mii_ioctl(priv->phydev, ifrq, cmd);
 }
 
 static int match_first_device(struct device *dev, void *data)
This page took 0.04642 seconds and 5 git commands to generate.