https://bugzilla.novell.com/show_bug.cgi?id=351119 User hschaa@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351119#c26 --- Comment #26 from Helmut Schaa <hschaa@novell.com> 2008-05-21 03:51:15 MST --- I can reproduce the issue with 2.6.26-rc2 after around 20 suspend-resume cycles using Seife's suspendtest-script. Using the attached patch (maybe let's call it a hack) I was able to get mouse and touchpad working again after the 'write CTR command' failed. I'll attach the dmesg output for that case. diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 65a74cf..c41d59a 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c @@ -913,7 +913,7 @@ static int i8042_suspend(struct platform_device *dev, pm_message_t state) static int i8042_resume(struct platform_device *dev) { int error; - + int i = 0; /* * Do not bother with restoring state if we haven't suspened yet */ @@ -937,9 +937,17 @@ static int i8042_resume(struct platform_device *dev) i8042_ctr &= ~I8042_CTR_XLATE; i8042_ctr |= I8042_CTR_AUXDIS | I8042_CTR_KBDDIS; i8042_ctr &= ~(I8042_CTR_AUXINT | I8042_CTR_KBDINT); + printk(KERN_ERR "i8042: write CTR to resume\n"); if (i8042_command(&i8042_ctr, I8042_CMD_CTL_WCTR)) { - printk(KERN_ERR "i8042: Can't write CTR to resume\n"); - return -EIO; + while(i < 20) { + msleep(50); + printk(KERN_ERR "i8042: Can't write CTR to resume, retry %i\n", i); + if (!i8042_command(&i8042_ctr, I8042_CMD_CTL_WCTR)) + break; + i++; + } + if (i >= 20) + return -EIO; } if (i8042_mux_present) { -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.