diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-26 13:29:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-26 13:29:40 -0400 |
commit | 5a54bd1307471c1cd0521402fe65e2057edcab2f (patch) | |
tree | 25fb6a543db4ccc11b6d5662ed2e7facfce39ae7 /drivers/net/tg3.c | |
parent | f9f35677d81adb0feedcd6e0e661784805c8facd (diff) | |
parent | 8e0ee43bc2c3e19db56a4adaa9a9b04ce885cd84 (diff) |
Merge commit 'v2.6.29' into core/header-fixes
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 8b3f84685387..dabdf59f8016 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -852,7 +852,7 @@ static int tg3_bmcr_reset(struct tg3 *tp) | |||
852 | } | 852 | } |
853 | udelay(10); | 853 | udelay(10); |
854 | } | 854 | } |
855 | if (limit <= 0) | 855 | if (limit < 0) |
856 | return -EBUSY; | 856 | return -EBUSY; |
857 | 857 | ||
858 | return 0; | 858 | return 0; |
@@ -1473,7 +1473,8 @@ static void tg3_phy_toggle_apd(struct tg3 *tp, bool enable) | |||
1473 | { | 1473 | { |
1474 | u32 reg; | 1474 | u32 reg; |
1475 | 1475 | ||
1476 | if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS)) | 1476 | if (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS) || |
1477 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) | ||
1477 | return; | 1478 | return; |
1478 | 1479 | ||
1479 | reg = MII_TG3_MISC_SHDW_WREN | | 1480 | reg = MII_TG3_MISC_SHDW_WREN | |
@@ -1603,7 +1604,7 @@ static int tg3_wait_macro_done(struct tg3 *tp) | |||
1603 | break; | 1604 | break; |
1604 | } | 1605 | } |
1605 | } | 1606 | } |
1606 | if (limit <= 0) | 1607 | if (limit < 0) |
1607 | return -EBUSY; | 1608 | return -EBUSY; |
1608 | 1609 | ||
1609 | return 0; | 1610 | return 0; |
@@ -2237,8 +2238,8 @@ static int tg3_set_power_state(struct tg3 *tp, pci_power_t state) | |||
2237 | phyid = phydev->drv->phy_id & phydev->drv->phy_id_mask; | 2238 | phyid = phydev->drv->phy_id & phydev->drv->phy_id_mask; |
2238 | if (phyid != TG3_PHY_ID_BCMAC131) { | 2239 | if (phyid != TG3_PHY_ID_BCMAC131) { |
2239 | phyid &= TG3_PHY_OUI_MASK; | 2240 | phyid &= TG3_PHY_OUI_MASK; |
2240 | if (phyid == TG3_PHY_OUI_1 && | 2241 | if (phyid == TG3_PHY_OUI_1 || |
2241 | phyid == TG3_PHY_OUI_2 && | 2242 | phyid == TG3_PHY_OUI_2 || |
2242 | phyid == TG3_PHY_OUI_3) | 2243 | phyid == TG3_PHY_OUI_3) |
2243 | do_low_power = true; | 2244 | do_low_power = true; |
2244 | } | 2245 | } |