lkml.org 
[lkml]   [2009]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    SubjectRe: [RFC][PATCH 7/7] PM: Asynchronous suspend and resume of i8042
    Date
    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/
    \
     
     \ /
      Last update: 2009-08-19 01:43    [W:0.047 / U:1.036 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site