Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64966
b: refs/heads/master
c: d1b139c
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Sep 13, 2007
1 parent 35920e3 commit db58b6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 5f08e46b621a769e52a9545a23ab1d5fb2aec1d4
refs/heads/master: d1b139c039704c391ab47c6c9540c28f7fcaa489
9 changes: 8 additions & 1 deletion trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ static const char *yukon2_name[] = {
"FE", /* 0xb7 */
};

static void sky2_set_multicast(struct net_device *dev);

/* Access to external PHY */
static int gm_phy_write(struct sky2_hw *hw, unsigned port, u16 reg, u16 val)
{
Expand Down Expand Up @@ -2900,8 +2902,10 @@ static int sky2_set_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
sky2->autoneg = ecmd->autoneg;
sky2->advertising = ecmd->advertising;

if (netif_running(dev))
if (netif_running(dev)) {
sky2_phy_reinit(sky2);
sky2_set_multicast(dev);
}

return 0;
}
Expand Down Expand Up @@ -2994,6 +2998,7 @@ static int sky2_nway_reset(struct net_device *dev)
return -EINVAL;

sky2_phy_reinit(sky2);
sky2_set_multicast(dev);

return 0;
}
Expand Down Expand Up @@ -4171,6 +4176,8 @@ static int sky2_resume(struct pci_dev *pdev)
dev_close(dev);
goto out;
}

sky2_set_multicast(dev);
}
}

Expand Down

0 comments on commit db58b6c

Please sign in to comment.