Re: [PATCH 2/3] phylib: Properly reinitialize PHYs after hibernation

2009-12-27 Thread David Miller
Actually I'm reverting both patches: drivers/net/phy/mdio_bus.c:268: warning: ‘mdio_bus_phy_may_suspend’ defined but not used Please resubmit these two patches with this warning fixed. CONFIG_PM is not always enabled :-) ___ Linuxppc-dev mailing list

Re: [PATCH 2/3] phylib: Properly reinitialize PHYs after hibernation

2009-12-27 Thread David Miller
From: Anton Vorontsov Date: Wed, 23 Dec 2009 01:14:51 +0300 > Since hibernation assumes power loss, we should fully reinitialize > PHYs (including platform fixups), as if PHYs were just attached. > > This patch factors phy_init_hw() out of phy_attach_direct(), then > converts mdio_bus to dev_pm_

[PATCH 2/3] phylib: Properly reinitialize PHYs after hibernation

2009-12-22 Thread Anton Vorontsov
Since hibernation assumes power loss, we should fully reinitialize PHYs (including platform fixups), as if PHYs were just attached. This patch factors phy_init_hw() out of phy_attach_direct(), then converts mdio_bus to dev_pm_ops and adds an appropriate restore() callback. Signed-off-by: Anton Vo