Skip to content

Commit daba2a6

Browse files
Matt Carlsondavem330
authored andcommitted
tg3: Restore LAA sooner in shutdown sequence
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>
1 parent 9cf74eb commit daba2a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/net/tg3.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,8 +2456,6 @@ static int tg3_set_power_state(struct tg3 *tp, pci_power_t state)
24562456
}
24572457
}
24582458

2459-
__tg3_set_mac_addr(tp, 0);
2460-
24612459
if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) {
24622460
u32 val;
24632461

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

6358+
__tg3_set_mac_addr(tp, 0);
6359+
63606360
tg3_write_sig_legacy(tp, kind);
63616361
tg3_write_sig_post_reset(tp, kind);
63626362

0 commit comments

Comments
 (0)