[TG3]: Support shutdown WoL.
authorMichael Chan <mchan@broadcom.com>
Tue, 21 Mar 2006 01:48:03 +0000 (17:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 01:48:03 +0000 (17:48 -0800)
commitbc1c756741b065cfebf850e4164c0e2aae9d527f
treee462b85564a66b0c4f41e0d9f1ccde7c98ba00a9
parent4e3a7aaa28db952392814f889dfbd25672266d29
[TG3]: Support shutdown WoL.

Support WoL during shutdown by calling
tg3_set_power_state(tp, PCI_D3hot) during tg3_close().

Change the power state parameter to pci_power_t type and use
constants defined in pci.h.

Certain ethtool operations cannot be performed after tg3_close()
because the device will go to low power state. Add return -EAGAIN
in such cases where appropriate.

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