[PATCH] TG3: Remove reset during MAC address changes.
commit404e2725e6b71bea2a0e072574610059d9b788de
authorMichael Chan <mchan@broadcom.com>
Tue, 8 May 2007 02:03:53 +0000 (7 19:03 -0700)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:45 +0000 (23 14:32 -0700)
tree9976d0418f528f2d2ff60f88ec497acf57584cc1
parent7bac478c009cdb21dca17c3fe84f8a053d42fd1e
[PATCH] TG3: Remove reset during MAC address changes.

The reset was added a while back so that ASF could re-init whatever
MAC address it wanted to use after the MAC address was changed.
Instead of resetting, we can just keep MAC address 1 unchanged during
MAC address changes if MAC address 1 is different from MAC address 0.

This fixes 2 problems:

1. Bonding calls set_mac_address in contexts that cannot sleep.
It no longer sleeps with the chip reset removed.

2. When ASF shares the same MAC address as the NIC, it needs to
always do that even when the MAC address is changed.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/net/tg3.c