Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368242
b: refs/heads/master
c: 11f2c98
h: refs/heads/master
v: v3
  • Loading branch information
Mugunthan V N authored and David S. Miller committed Mar 13, 2013
1 parent f6eea8f commit 7752395
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff5b8ef2ef3af0fd7e1cf6c8c1ed9ec5afbda422
refs/heads/master: 11f2c988382b880e602a005c26436043c5d2c274
16 changes: 14 additions & 2 deletions trunk/drivers/net/ethernet/ti/cpsw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,14 +1157,26 @@ static int cpsw_hwtstamp_ioctl(struct net_device *dev, struct ifreq *ifr)

static int cpsw_ndo_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
{
struct cpsw_priv *priv = netdev_priv(dev);
struct mii_ioctl_data *data = if_mii(req);
int slave_no = cpsw_slave_index(priv);

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

switch (cmd) {
#ifdef CONFIG_TI_CPTS
if (cmd == SIOCSHWTSTAMP)
case SIOCSHWTSTAMP:
return cpsw_hwtstamp_ioctl(dev, req);
#endif
return -ENOTSUPP;
case SIOCGMIIPHY:
data->phy_id = priv->slaves[slave_no].phy->addr;
break;
default:
return -ENOTSUPP;
}

return 0;
}

static void cpsw_ndo_tx_timeout(struct net_device *ndev)
Expand Down

0 comments on commit 7752395

Please sign in to comment.