tg3: Preserve LAA when device control is released
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 4 Nov 2008 00:51:36 +0000 (16:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2008 00:51:36 +0000 (16:51 -0800)
commit3f007891da0ad3d9192e9aa13ce4e3aaf20c33fa
tree6eeb9db2e6100fd4e75bbd83f42852f7f3cfff0d
parentb2aee1545dc3c05c8d5cf116de1e92907e98009b
tg3: Preserve LAA when device control is released

This patch moves the __tg3_set_mac_addr() function earlier in the file
listing, to avoid a function prototype, and calls the function to
restore the LAA after a driver unload chip reset.  With this code in
place, the administrator can wake the machine using 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>
drivers/net/tg3.c