Skip to contentSkip to conversation

net: jme: fix suspend/resume on JMC260

PATCH Superseded Diego Viola 1 participant 1 message Feb 23, 2016

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: jme: fix suspend/resume on JMC260

The JMC260 network card fails to suspend/resume because the call to jme_start_irq() was too early, moving the call to jme_start_irq() after the jme_reset_link() function makes it work.

Prior this change suspend/resume would fail unless /sys/power/pm_async=0 was explicitly specified.

---
 drivers/net/ethernet/jme.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/jme.c +2 -1
index b1de7af..8adbe8f 100644
@@ -3312,13 +3312,14 @@ jme_resume(struct device *dev)
 		jme_reset_phy_processor(jme);
 	jme_phy_calibration(jme);
 	jme_phy_setEA(jme);
-	jme_start_irq(jme);
 	netif_device_attach(netdev);
 
 	atomic_inc(&jme->link_changing);
 
 	jme_reset_link(jme);
 
+	jme_start_irq(jme);
+
 	return 0;
 }
 
Signature · 1 line
2.7.1