Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170656
b: refs/heads/master
c: 5402240
h: refs/heads/master
v: v3
  • Loading branch information
Valentine Barshak authored and David S. Miller committed Oct 12, 2009
1 parent f95893d commit 5b1aa3b
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: fad9ab2cefd3a3b4754f49eb41e2f43ea314cdce
refs/heads/master: 5402240c0bc621ef6865c80043bda30a29365948
14 changes: 14 additions & 0 deletions trunk/drivers/net/pasemi_mac_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ pasemi_mac_ethtool_get_settings(struct net_device *netdev,
return phy_ethtool_gset(phydev, cmd);
}

static int
pasemi_mac_ethtool_set_settings(struct net_device *netdev,
struct ethtool_cmd *cmd)
{
struct pasemi_mac *mac = netdev_priv(netdev);
struct phy_device *phydev = mac->phydev;

if (!phydev)
return -EOPNOTSUPP;

return phy_ethtool_sset(phydev, cmd);
}

static void
pasemi_mac_ethtool_get_drvinfo(struct net_device *netdev,
struct ethtool_drvinfo *drvinfo)
Expand Down Expand Up @@ -150,6 +163,7 @@ static void pasemi_mac_get_strings(struct net_device *netdev, u32 stringset,

const struct ethtool_ops pasemi_mac_ethtool_ops = {
.get_settings = pasemi_mac_ethtool_get_settings,
.set_settings = pasemi_mac_ethtool_set_settings,
.get_drvinfo = pasemi_mac_ethtool_get_drvinfo,
.get_msglevel = pasemi_mac_ethtool_get_msglevel,
.set_msglevel = pasemi_mac_ethtool_set_msglevel,
Expand Down

0 comments on commit 5b1aa3b

Please sign in to comment.