Skip to content

Commit

Permalink
tg3: Restore LAA sooner in shutdown sequence
Browse files Browse the repository at this point in the history
After a shutdown reset, the LAA needs to be restored before posting the
post-reset signature in shared memory.  If the LAA is not restored
before then, the bootcode will assume the factory default MAC address
and WOL will not work with the LAA.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Matt Carlson authored and David S. Miller committed Apr 21, 2009
1 parent 9cf74eb commit daba2a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2456,8 +2456,6 @@ static int tg3_set_power_state(struct tg3 *tp, pci_power_t state)
}
}

__tg3_set_mac_addr(tp, 0);

if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) {
u32 val;

Expand Down Expand Up @@ -6357,6 +6355,8 @@ static int tg3_halt(struct tg3 *tp, int kind, int silent)
tg3_abort_hw(tp, silent);
err = tg3_chip_reset(tp);

__tg3_set_mac_addr(tp, 0);

tg3_write_sig_legacy(tp, kind);
tg3_write_sig_post_reset(tp, kind);

Expand Down

0 comments on commit daba2a6

Please sign in to comment.