phylib: Properly reinitialize PHYs after hibernation
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Wed, 30 Dec 2009 08:23:30 +0000 (08:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Dec 2009 06:03:42 +0000 (22:03 -0800)
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 Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found