Re: EeePC 900 trackpad often not detected at boot in 2.6.30-rc4

From: Dmitry Torokhov
Date: Fri May 15 2009 - 23:29:42 EST


On Fri, May 15, 2009 at 08:27:55PM -0700, Dmitry Torokhov wrote:
> On Wed, May 13, 2009 at 08:19:53PM +0100, Sitsofe Wheeler wrote:
> > Hi,
> >
> > > On Tue, May 12, 2009 at 08:20:54PM -0700, Dmitry Torokhov wrote:
> > > >
> > > > Could you try booting with i8042.debug and send me dmesg of the case
> >
> > See below:
> >
>
> Thanks. I have an idea what is happening... Could you please attach the
> debug patch below and give me debug dmesg of the failure again? Thanks!
>
> --
> Dmitry

And now... *drumroll* ...the patch!

--
Dmitry


Input: libps2 - debug patch

From: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

Signed-off-by: Dmitry Torokhov <dtor@xxxxxxx>
---

drivers/input/serio/libps2.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c
index a0d8968..4938adc 100644
--- a/drivers/input/serio/libps2.c
+++ b/drivers/input/serio/libps2.c
@@ -208,6 +208,9 @@ int __ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command)
timeout = wait_event_timeout(ps2dev->wait,
!(ps2dev->flags & PS2_FLAG_CMD1), timeout);

+ if (ps2dev->cmdcnt && timeout <= 0 && !(ps2dev->flags & PS2_FLAG_CMD1))
+ printk(KERN_ERR "libps2: errorneously fail %d command\n", command);
+
if (ps2dev->cmdcnt && timeout > 0) {

timeout = ps2_adjust_timeout(ps2dev, command, timeout);
--
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/