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
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_
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