Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53715
b: refs/heads/master
c: 5cf64b8
h: refs/heads/master
i:
  53713: d887fdc
  53711: df4501b
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed May 5, 2007
1 parent 2f1712c commit 2ca4c09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 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: 986e0aeb9ae09127b401c3baa66f15b7a31f354c
refs/heads/master: 5cf64b8a7399999439f0d6748babb1ccb6bcad7c
10 changes: 2 additions & 8 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2595,10 +2595,8 @@ static int tg3_setup_fiber_by_hand(struct tg3 *tp, u32 mac_status)
{
int current_link_up = 0;

if (!(mac_status & MAC_STATUS_PCS_SYNCED)) {
tp->tg3_flags &= ~TG3_FLAG_GOT_SERDES_FLOWCTL;
if (!(mac_status & MAC_STATUS_PCS_SYNCED))
goto out;
}

if (tp->link_config.autoneg == AUTONEG_ENABLE) {
u32 flags;
Expand All @@ -2616,7 +2614,6 @@ static int tg3_setup_fiber_by_hand(struct tg3 *tp, u32 mac_status)

tg3_setup_flow_control(tp, local_adv, remote_adv);

tp->tg3_flags |= TG3_FLAG_GOT_SERDES_FLOWCTL;
current_link_up = 1;
}
for (i = 0; i < 30; i++) {
Expand All @@ -2639,7 +2636,6 @@ static int tg3_setup_fiber_by_hand(struct tg3 *tp, u32 mac_status)
} else {
/* Forcing 1000FD link up. */
current_link_up = 1;
tp->tg3_flags |= TG3_FLAG_GOT_SERDES_FLOWCTL;

tw32_f(MAC_MODE, (tp->mac_mode | MAC_MODE_SEND_CONFIGS));
udelay(40);
Expand Down Expand Up @@ -7400,9 +7396,7 @@ static int tg3_close(struct net_device *dev)

tg3_halt(tp, RESET_KIND_SHUTDOWN, 1);
tg3_free_rings(tp);
tp->tg3_flags &=
~(TG3_FLAG_INIT_COMPLETE |
TG3_FLAG_GOT_SERDES_FLOWCTL);
tp->tg3_flags &= ~TG3_FLAG_INIT_COMPLETE;

tg3_full_unlock(tp);

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/tg3.h
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,6 @@ struct tg3 {
#define TG3_FLAG_IN_RESET_TASK 0x04000000
#define TG3_FLAG_40BIT_DMA_BUG 0x08000000
#define TG3_FLAG_BROKEN_CHECKSUMS 0x10000000
#define TG3_FLAG_GOT_SERDES_FLOWCTL 0x20000000
#define TG3_FLAG_CHIP_RESETTING 0x40000000
#define TG3_FLAG_INIT_COMPLETE 0x80000000
u32 tg3_flags2;
Expand Down

0 comments on commit 2ca4c09

Please sign in to comment.