From: Anton Vorontsov Date: Sun, 1 Feb 2009 08:53:34 +0000 (-0800) Subject: phylib: Rework suspend/resume code to check netdev wakeup capability X-Git-Tag: v2.6.30-rc1~662^2~861 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d1e4db2b0698785f4e4dd139d88257e855e53b8;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed