Messages in this thread Patch in this message | | | From | "Rafael J. Wysocki" <> | Subject | Re: [RFC][PATCH 7/7] PM: Asynchronous suspend and resume of i8042 | Date | Wed, 19 Aug 2009 01:40:26 +0200 |
| |
On Tuesday 18 August 2009, Rafael J. Wysocki wrote: > On Tuesday 18 August 2009, Zhang Rui wrote: > > On Mon, 2009-08-17 at 08:21 +0800, Rafael J. Wysocki wrote: > > > Set async_suspend for i8042. > > > > > it's the psmouse reset that takes the 0.4 seconds during suspend. > > so we should call device_enable_async_suspend for the psmouse serio > > device in psmouse-base.c > > > > Or invoking device_enable_async_suspend for every serio device in > > serio.c, as the keyboard also takes about 0.2s to suspend. > > Yes we can do that. I'll test that later today.
The appended patch appears to work on my test box.
Thanks, Rafael
--- Set async_suspend for serio input devices.
--- 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); } } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |