Skip to contentSkip to conversation

Fix suspend/resume support in via-rhine2

PATCH Pavel Machek 1 participant 1 message Oct 21, 2004 Network drivers

lore
Share & tools
lore
#0 lore raw

Hi!

If I want via-rhine to work after resume, I need this patch. It stops interrupts during suspend and reinitializes them after that. Please apply,

Pavel

drivers/net/via-rhine.c +4 -0
@@ -1957,6 +1957,7 @@
 	rhine_shutdown(&pdev->dev);
 	spin_unlock_irqrestore(&rp->lock, flags);
 
+	free_irq(dev->irq, dev);
 	return 0;
 }
 
@@ -1970,6 +1971,9 @@
 	if (!netif_running(dev))
 		return 0;
 
+        if (request_irq(dev->irq, rhine_interrupt, SA_SHIRQ, dev->name, dev))
+		printk(KERN_ERR "via-rhine %s: request_irq failed\n", dev->name);
+
 	ret = pci_set_power_state(pdev, 0);
 	if (debug > 1)
 		printk(KERN_INFO "%s: Entering power state D0 %s (%d).\n",
Signature · 2 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!