Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215170
b: refs/heads/master
c: 8998082
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Oct 16, 2010
1 parent 39b4951 commit d55dee1
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 35f2516f0a1f9dddb339849c7a07e089322c18c3
refs/heads/master: 89980827c7a1e3c2b36895c22c6ef0e92aea6b0c
3 changes: 2 additions & 1 deletion trunk/drivers/net/pch_gbe/pch_gbe_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ static int pch_gbe_set_settings(struct net_device *netdev,

pch_gbe_hal_write_phy_reg(hw, MII_BMCR, BMCR_RESET);

if (ecmd->speed == -1)
if (ecmd->speed == USHRT_MAX) {
ecmd->speed = SPEED_1000;
ecmd->duplex = DUPLEX_FULL;
}
ret = mii_ethtool_sset(&adapter->mii, ecmd);
if (ret) {
pr_err("Error: mii_ethtool_sset\n");
Expand Down

0 comments on commit d55dee1

Please sign in to comment.