aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2011-06-11 22:19:00 -0400
committerDavid S. Miller <davem@conan.davemloft.net>2011-06-13 17:26:14 -0400
commitfb290cdd43463e6be339bfb021aa9a00cdb50ea2 (patch)
tree47d68cc4d9af41cf8b4078bb360ad8a91aca16df /drivers
parent18a03b9772da749efb8d92bd9893bfe3bd442425 (diff)
davinci_emac: pass ioctls through to phy device.
The DaVinci EMAC driver does not implement any ioctls, but still it can pass them through to the phy device. This makes it possible for a phy to offer PHC capabilities. Cc: Anant Gole <anantgole@ti.com> Cc: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Richard Cochran <richard.cochran@omicron.at> Signed-off-by: David S. Miller <davem@conan.davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/davinci_emac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index dcc4a170b0f3..5c2baa4f785a 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -1489,14 +1489,14 @@ static void emac_adjust_link(struct net_device *ndev)
1489 */ 1489 */
1490static int emac_devioctl(struct net_device *ndev, struct ifreq *ifrq, int cmd) 1490static int emac_devioctl(struct net_device *ndev, struct ifreq *ifrq, int cmd)
1491{ 1491{
1492 dev_warn(&ndev->dev, "DaVinci EMAC: ioctl not supported\n"); 1492 struct emac_priv *priv = netdev_priv(ndev);
1493 1493
1494 if (!(netif_running(ndev))) 1494 if (!(netif_running(ndev)))
1495 return -EINVAL; 1495 return -EINVAL;
1496 1496
1497 /* TODO: Add phy read and write and private statistics get feature */ 1497 /* TODO: Add phy read and write and private statistics get feature */
1498 1498
1499 return -EOPNOTSUPP; 1499 return phy_mii_ioctl(priv->phydev, ifrq, cmd);
1500} 1500}
1501 1501
1502static int match_first_device(struct device *dev, void *data) 1502static int match_first_device(struct device *dev, void *data)