Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277500
b: refs/heads/master
c: 8d8bdfe
h: refs/heads/master
v: v3
  • Loading branch information
Ricardo Ribalda authored and David S. Miller committed Nov 8, 2011
1 parent ed5d01b commit 3deaef0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2563fa595447bba6a73e6c58c4bbf11ac0f28931
refs/heads/master: 8d8bdfe8034399357df58b5f3e4da638a9e9a257
14 changes: 14 additions & 0 deletions trunk/drivers/net/ethernet/xilinx/ll_temac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,12 +915,26 @@ temac_poll_controller(struct net_device *ndev)
}
#endif

static int temac_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd)
{
struct temac_local *lp = netdev_priv(ndev);

if (!netif_running(ndev))
return -EINVAL;

if (!lp->phy_dev)
return -EINVAL;

return phy_mii_ioctl(lp->phy_dev, rq, cmd);
}

static const struct net_device_ops temac_netdev_ops = {
.ndo_open = temac_open,
.ndo_stop = temac_stop,
.ndo_start_xmit = temac_start_xmit,
.ndo_set_mac_address = netdev_set_mac_address,
.ndo_validate_addr = eth_validate_addr,
.ndo_do_ioctl = temac_ioctl,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = temac_poll_controller,
#endif
Expand Down

0 comments on commit 3deaef0

Please sign in to comment.