drivers: net: davinci_mdio: moving mdio resume earlier than cpsw ethernet driver
authorMugunthan V N <mugunthanvnm@ti.com>
Tue, 11 Jun 2013 10:02:04 +0000 (15:32 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2013 09:56:54 +0000 (02:56 -0700)
MDIO driver should resume before CPSW ethernet driver so that CPSW connect
to the phy and start tx/rx ethernet packets, changing the suspend/resume
apis with suspend_late/resume_early.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c

index b2275d1b19b3af0d918c1de2e1756f8ee99bff7a..74e56b3fba1182df2db3bd75a01f6f7a72b8512e 100644 (file)
@@ -476,8 +476,8 @@ static int davinci_mdio_resume(struct device *dev)
 }
 
 static const struct dev_pm_ops davinci_mdio_pm_ops = {
-       .suspend        = davinci_mdio_suspend,
-       .resume         = davinci_mdio_resume,
+       .suspend_late   = davinci_mdio_suspend,
+       .resume_early   = davinci_mdio_resume,
 };
 
 static const struct of_device_id davinci_mdio_of_mtable[] = {