Skip to contentSkip to conversation

Async serio suspend/resume?

DISCUSSION Rafael J. Wysocki 2 participants 4 messages Dec 1, 2009 Input drivers

lore
Share & tools
lore
#0 lore raw

Hi Dmitry,

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

Rafael

maintainer
#1 lore raw

Hi Rafael,

Quoted 5 lines · Rafael J. Wysocki

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.

Signature · 1 line
Dmitry
#2 lore raw
Quoted 11 lines · Dmitry Torokhov

Hi Rafael,

Quoted 5 lines · Rafael J. Wysocki

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 <[email protected]>
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).

---
 drivers/input/serio/serio.c |    1 +
 1 file changed, 1 insertion(+)
drivers/input/serio/serio.c +1 -0
Index: 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);
 	}
 }
 
maintainer
#3 lore raw
Quoted 10 lines · Rafael J. Wysocki
Quoted 9 lines · Dmitry Torokhov

Hi Rafael,

Quoted 5 lines · Rafael J. Wysocki

Hi Dmitry,

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

Quoted 8 lines
Quoted 2 lines

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.

Signature · 1 line
Dmitry