jme: Support WoL after shutdown
authorGuo-Fu Tseng <cooldavid@cooldavid.org>
Sun, 24 Oct 2010 23:18:25 +0000 (16:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Oct 2010 23:18:25 +0000 (16:18 -0700)
commit1c5578194abde100c089855cce72e87c047d8530
treea61bc9675d0c9db2db770367f24d5ac55b98d68a
parentb889416b54c90f59276537debd92cb4e84b5f550
jme: Support WoL after shutdown

Adding shutdown function that setup wake if wol is enabled.
Add jme_phy_on in jme_set_100m_half in case it is shutting down
or suspending when interface is down(phy_off by default).

v2 updates:
Removed CONFIG_PM ifdef for jme_set_100m_half and jme_wait_link.
It would be nice if it can be applied to net-2.6 along with other patches
sent few days ago. If it is not appropriate, please ignore the net-2.6
request, and apply it to net-next-2.6 as previous patch. :)

Reported-and-helped-by: Сtac <Taoga@yandex.ru>
Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/jme.c