]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[TG3]: Remove reset during MAC address changes.
authorMichael Chan <mchan@broadcom.com>
Sat, 5 May 2007 19:10:20 +0000 (12:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 May 2007 19:10:20 +0000 (12:10 -0700)
commit986e0aeb9ae09127b401c3baa66f15b7a31f354c
treeb2be088a6831cdc65668cf6788e39b91ca36291b
parenta85feb8cfc53c08b6f0d770f930ca9cc6885f414
[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>
drivers/net/tg3.c