Re: [RFC][PATCH 7/7] PM: Asynchronous suspend and resume of i8042

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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); 	} } _______________________________________________linux-pm mailing listlinux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx://lists.linux-foundation.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux