]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Fix Wake-on-LAN support
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Fri, 30 Jan 2009 01:31:13 +0000 (17:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Jan 2009 01:31:13 +0000 (17:31 -0800)
commitb61303219cb1b21c00fe9b4eed58327dc2d3df2f
tree6e68cc3e7bf7f757b7b80a7933f297bd1e357afb
parent8eb943ad1bdee1958af10807763b085e492269e8
gianfar: Fix Wake-on-LAN support

commit 6370fe8e2204a84305398b9385caac969cdd20f8 ("phy: power
management support") caused a regression in the gianfar driver.

Now phylib turns off PHY power during suspend, and thus WOL
doesn't work anymore.

This patch workarounds the issue by enabling wakeup in the MDIO
device, i.e. just restores the old behaviour for the gianfar
driver. Note that this way all PHYs on a given MDIO bus won't
be turned off during suspend, which isn't good from the power
saving point of view.

A proper, per netdevice wakeup management support will need
a bit reworked phylib suspend/resume logic.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar_mii.c