Re: [linux-pm] Linux 2.6.21-rc6

From: David Brownell
Date: Sun Apr 15 2007 - 13:54:40 EST


On Sunday 15 April 2007 9:37 am, Rafael J. Wysocki wrote:
>
> Which makes me think the following patch might help:
>
> drivers/input/serio/i8042.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> Index: linux-2.6.21-rc6/drivers/input/serio/i8042.c
> ===================================================================
> --- linux-2.6.21-rc6.orig/drivers/input/serio/i8042.c 2007-04-07 12:15:19.000000000 +0200
> +++ linux-2.6.21-rc6/drivers/input/serio/i8042.c 2007-04-15 18:30:01.000000000 +0200
> @@ -846,7 +846,8 @@ static long i8042_panic_blink(long count
> static int i8042_suspend(struct platform_device *dev, pm_message_t state)
> {
> if (dev->dev.power.power_state.event != state.event) {
> - if (state.event == PM_EVENT_SUSPEND)
> + if (state.event == PM_EVENT_SUSPEND
> + || state.event == PM_EVENT_PRETHAW)

Yeah, lack of PRETHAW support could be an issue. As you may recall,
it was added because otherwise statically linked USB host controllers
came up under the mistaken belief that they were getting a real resume
event rather than a restart-after-power-off ... and there needed to be
a way to force a hard reset. Seems like a similar issue here.

- Dave


> i8042_controller_reset();
>
> dev->dev.power.power_state = state;
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/