Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63733
b: refs/heads/master
c: 163642a
h: refs/heads/master
i:
  63731: 8f1eb59
v: v3
  • Loading branch information
Domen Puncer authored and Jeff Garzik committed Aug 7, 2007
1 parent 95e6f4d commit 3af1911
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 44a5b3d539893988dc6b63054c59d031df1fd7bc
refs/heads/master: 163642a24a44d7b1d1e1b3cb8da25a142a919e24
4 changes: 2 additions & 2 deletions trunk/drivers/net/phy/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void phy_sanitize_settings(struct phy_device *phydev)

/* Sanitize settings based on PHY capabilities */
if ((features & SUPPORTED_Autoneg) == 0)
phydev->autoneg = 0;
phydev->autoneg = AUTONEG_DISABLE;

idx = phy_find_valid(phy_find_setting(phydev->speed, phydev->duplex),
features);
Expand Down Expand Up @@ -374,7 +374,7 @@ int phy_mii_ioctl(struct phy_device *phydev,
if (mii_data->phy_id == phydev->addr) {
switch(mii_data->reg_num) {
case MII_BMCR:
if (val & (BMCR_RESET|BMCR_ANENABLE))
if ((val & (BMCR_RESET|BMCR_ANENABLE)) == 0)
phydev->autoneg = AUTONEG_DISABLE;
else
phydev->autoneg = AUTONEG_ENABLE;
Expand Down

0 comments on commit 3af1911

Please sign in to comment.