public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* Async serio suspend/resume?
@ 2009-12-01 22:55 Rafael J. Wysocki
  2009-12-01 23:10 ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Rafael J. Wysocki @ 2009-12-01 22:55 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: pm list

Hi Dmitry,

Do you think it would be safe to allow serio devices to use the async
suspend/resume now?

Rafael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Async serio suspend/resume?
  2009-12-01 22:55 Async serio suspend/resume? Rafael J. Wysocki
@ 2009-12-01 23:10 ` Dmitry Torokhov
  2009-12-01 23:22   ` Rafael J. Wysocki
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2009-12-01 23:10 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: pm list

Hi Rafael,

On Tue, Dec 01, 2009 at 11:55:48PM +0100, Rafael J. Wysocki wrote:
> Hi Dmitry,
> 
> Do you think it would be safe to allow serio devices to use the async
> suspend/resume now?
> 

Should be fine now, although I would not enable it in .32. But .33 seems
like a good target.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Async serio suspend/resume?
  2009-12-01 23:10 ` Dmitry Torokhov
@ 2009-12-01 23:22   ` Rafael J. Wysocki
  2009-12-01 23:34     ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Rafael J. Wysocki @ 2009-12-01 23:22 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: pm list

On Wednesday 02 December 2009, Dmitry Torokhov wrote:
> Hi Rafael,
> 
> On Tue, Dec 01, 2009 at 11:55:48PM +0100, Rafael J. Wysocki wrote:
> > Hi Dmitry,
> > 
> > Do you think it would be safe to allow serio devices to use the async
> > suspend/resume now?
> > 
> 
> Should be fine now, although I would not enable it in .32. But .33 seems
> like a good target.

The entire async suspend/resume patchset is targeted at .33, so this is all
fine.

So, I guess I can put the appended patch into my linux-next branch?

Rafael

---
From: Rafael J. Wysocki <rjw@sisk.pl>
Subject: PM: Allow serio input devices to suspend/resume asynchronously

Set async_suspend for all serio input devices, so that they can be
suspended and resumed asynchronously with other devices they don't
depend on in a known way (i.e. devices which are not their parents
or children and to which they are not connected via struct pm_link
objects).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
 drivers/input/serio/serio.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6/drivers/input/serio/serio.c
===================================================================
--- linux-2.6.orig/drivers/input/serio/serio.c
+++ linux-2.6/drivers/input/serio/serio.c
@@ -576,6 +576,7 @@ static void serio_add_port(struct serio 
 			printk(KERN_ERR
 				"serio: sysfs_create_group() failed for %s (%s), error: %d\n",
 				serio->phys, serio->name, error);
+		device_enable_async_suspend(&serio->dev, true);
 	}
 }
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Async serio suspend/resume?
  2009-12-01 23:22   ` Rafael J. Wysocki
@ 2009-12-01 23:34     ` Dmitry Torokhov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2009-12-01 23:34 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: pm list

On Wed, Dec 02, 2009 at 12:22:59AM +0100, Rafael J. Wysocki wrote:
> On Wednesday 02 December 2009, Dmitry Torokhov wrote:
> > Hi Rafael,
> > 
> > On Tue, Dec 01, 2009 at 11:55:48PM +0100, Rafael J. Wysocki wrote:
> > > Hi Dmitry,
> > > 
> > > Do you think it would be safe to allow serio devices to use the async
> > > suspend/resume now?
> > > 
> > 
> > Should be fine now, although I would not enable it in .32. But .33 seems
> > like a good target.
> 
> The entire async suspend/resume patchset is targeted at .33, so this is all
> fine.
> 
> So, I guess I can put the appended patch into my linux-next branch?
> 

Sure, go head.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-01 23:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-01 22:55 Async serio suspend/resume? Rafael J. Wysocki
2009-12-01 23:10 ` Dmitry Torokhov
2009-12-01 23:22   ` Rafael J. Wysocki
2009-12-01 23:34     ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox