Skip to contentSkip to conversation

net: jme: fix suspend/resume on JMC260

PATCH Superseded Diego Viola 3 participants 7 messages Feb 23, 2016

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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

---
 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
#3 lore raw
Quoted 4 lines · Diego Viola
Quoted 3 lines · Fabio Estevam
Quoted 1 line · Diego Viola
Quoted 8 lines
Quoted 1 line

You should write a commit log.

I thought about including the link to my bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=112351

What else would you suggest I add to the commit message?

Diego

I probably should have explained also that this patch fixes my suspend/resume problem even when /sys/power/pm_async is set to 1, because before that, suspend/resume only worked when pm_async was 0.

I had a chat with Guo a few minutes ago on Hangouts and he said he will look into this problem. :)

Diego

maintainer
#4 lore raw
In reply to Diego Viola

From: Diego Viola <[email protected]>
Date: Mon, 22 Feb 2016 22:58:48 -0300

Quoted 10 lines · Fabio Estevam
Quoted 4 lines · Diego Viola
Quoted 1 line

You should write a commit log.

I thought about including the link to my bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=112351

What else would you suggest I add to the commit message?

The commit message is where you describe the change you are making.

This includes exactly what you are fixing, how you are doing it, and why you are doing it that way.

Empty commit log messages are %99.99999 of the time completely inappropriate.

#5 lore raw
Quoted 14 lines · David Miller

From: Diego Viola <[email protected]>
Date: Mon, 22 Feb 2016 22:58:48 -0300

Quoted 10 lines · Fabio Estevam
Quoted 4 lines · Diego Viola
Quoted 1 line

You should write a commit log.

I thought about including the link to my bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=112351

What else would you suggest I add to the commit message?

Quoted 7 lines

The commit message is where you describe the change you are making.

This includes exactly what you are fixing, how you are doing it, and why you are doing it that way.

Empty commit log messages are %99.99999 of the time completely inappropriate.

David,

I understand and appreciate your advice, thanks.

However, please consider that I'm not a kernel developer, so I don't understand much or anything about how this driver works internally, this is why I came here to report about problem in the first place.

All I can tell you for certain is that this change makes my suspend/resume work and it doesn't hang anymore while resuming from suspend.

I apologize for the empty commit message and for not being able to explain things deeper, but Pavel Machek is the person who suggested I make this change in the code, so maybe he can provide some help?

Diego

#6 lore raw
Quoted 35 lines · Diego Viola
Quoted 14 lines · David Miller

From: Diego Viola <[email protected]>
Date: Mon, 22 Feb 2016 22:58:48 -0300

Quoted 10 lines · Fabio Estevam
Quoted 4 lines · Diego Viola
Quoted 1 line

You should write a commit log.

I thought about including the link to my bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=112351

What else would you suggest I add to the commit message?

Quoted 7 lines

The commit message is where you describe the change you are making.

This includes exactly what you are fixing, how you are doing it, and why you are doing it that way.

Empty commit log messages are %99.99999 of the time completely inappropriate.

David,

I understand and appreciate your advice, thanks.

However, please consider that I'm not a kernel developer, so I don't understand much or anything about how this driver works internally, this is why I came here to report about problem in the first place.

All I can tell you for certain is that this change makes my suspend/resume work and it doesn't hang anymore while resuming from suspend.

Quoted 5 lines

I apologize for the empty commit message and for not being able to explain things deeper, but Pavel Machek is the person who suggested I make this change in the code, so maybe he can provide some help?

Diego

I will try sending a V2 patch again with a proper commit message, sorry.

Diego