* Re: [PATCH 1/1] ibmveth: Add suspend/resume support
[not found] <201002211647.o1LGlqh3023138@d01av01.pok.ibm.com>
@ 2010-02-22 23:46 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2010-02-22 23:46 UTC (permalink / raw)
To: brking; +Cc: netdev
From: Brian King <brking@linux.vnet.ibm.com>
Date: Sun, 21 Feb 2010 10:48:01 -0600
>
> Adds support for resuming from suspend for IBM virtual ethernet devices.
> We may have lost an interrupt over the suspend, so we just kick the
> interrupt handler to process anything that is outstanding.
>
> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] ibmveth: Add suspend/resume support
@ 2010-05-07 18:56 Brian King
2010-05-18 0:09 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Brian King @ 2010-05-07 18:56 UTC (permalink / raw)
To: netdev; +Cc: brking
Adds support for resuming from suspend for IBM virtual ethernet devices.
We may have lost an interrupt over the suspend, so we just kick the
interrupt handler to process anything that is outstanding.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---
drivers/net/ibmveth.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff -puN drivers/net/ibmveth.c~ibmveth_suspend drivers/net/ibmveth.c
--- linux-2.6/drivers/net/ibmveth.c~ibmveth_suspend 2010-05-07 13:49:19.000000000 -0500
+++ linux-2.6-bjking1/drivers/net/ibmveth.c 2010-05-07 13:49:19.000000000 -0500
@@ -45,6 +45,7 @@
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/mm.h>
+#include <linux/pm.h>
#include <linux/ethtool.h>
#include <linux/proc_fs.h>
#include <linux/in.h>
@@ -1589,6 +1590,12 @@ static struct kobj_type ktype_veth_pool
.default_attrs = veth_pool_attrs,
};
+static int ibmveth_resume(struct device *dev)
+{
+ struct net_device *netdev = dev_get_drvdata(dev);
+ ibmveth_interrupt(netdev->irq, netdev);
+ return 0;
+}
static struct vio_device_id ibmveth_device_table[] __devinitdata= {
{ "network", "IBM,l-lan"},
@@ -1596,6 +1603,10 @@ static struct vio_device_id ibmveth_devi
};
MODULE_DEVICE_TABLE(vio, ibmveth_device_table);
+static struct dev_pm_ops ibmveth_pm_ops = {
+ .resume = ibmveth_resume
+};
+
static struct vio_driver ibmveth_driver = {
.id_table = ibmveth_device_table,
.probe = ibmveth_probe,
@@ -1604,6 +1615,7 @@ static struct vio_driver ibmveth_driver
.driver = {
.name = ibmveth_driver_name,
.owner = THIS_MODULE,
+ .pm = &ibmveth_pm_ops,
}
};
_
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] ibmveth: Add suspend/resume support
2010-05-07 18:56 [PATCH 1/1] ibmveth: Add suspend/resume support Brian King
@ 2010-05-18 0:09 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2010-05-18 0:09 UTC (permalink / raw)
To: brking; +Cc: netdev
From: Brian King <brking@linux.vnet.ibm.com>
Date: Fri, 07 May 2010 13:56:08 -0500
>
> Adds support for resuming from suspend for IBM virtual ethernet devices.
> We may have lost an interrupt over the suspend, so we just kick the
> interrupt handler to process anything that is outstanding.
>
> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Applied, thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-18 0:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-07 18:56 [PATCH 1/1] ibmveth: Add suspend/resume support Brian King
2010-05-18 0:09 ` David Miller
[not found] <201002211647.o1LGlqh3023138@d01av01.pok.ibm.com>
2010-02-22 23:46 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).