[PATCH -next 2/2] phylib: Rework suspend/resume code to check netdev wakeup capability

David Miller davem at davemloft.net
Sun Feb 1 19:54:32 EST 2009


From: Anton Vorontsov <avorontsov at ru.mvista.com>
Date: Wed, 28 Jan 2009 23:39:14 +0300

> 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 at ru.mvista.com>

Applied.



More information about the Linuxppc-dev mailing list