]> git.baikalelectronics.ru Git - kernel.git/commit
phylib: Rework suspend/resume code to check netdev wakeup capability
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Sun, 1 Feb 2009 08:53:34 +0000 (00:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2009 08:53:34 +0000 (00:53 -0800)
commit237499b31396b6ce64b8557a1004bf2c7d445730
tree47ed84760a205d6977064682331bbb9a4fee9e73
parent9ed33fade7f8c8b59d2b24173ff01a89ad4fddeb
phylib: Rework suspend/resume code to check netdev wakeup capability

In most cases (e.g. PCI drivers) MDIO and MAC controllers are
represented by the same device. But for SOC ethernets we have
separate devices. So, in SOC case, checking whether MDIO
controller may wakeup is not only makes little sense, but also
prevents us from doing per-netdevice wakeup management.

This patch reworks suspend/resume code so that now it checks
for net device's wakeup flags, not MDIO controller's ones.

Each netdevice should manage its wakeup flags, and phylib will
decide whether suspend an attached PHY or not.

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