Input: psmouse - fix new device detection logic
authorDmitry Torokhov <dtor_core@ameritech.net>
Sat, 29 Apr 2006 05:12:44 +0000 (01:12 -0400)
committerDmitry Torokhov <dtor_core@ameritech.net>
Sat, 29 Apr 2006 05:12:44 +0000 (01:12 -0400)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/psmouse-base.c

index 32d70ed8f41dd7087f4fcc32f6522aec29ac3c3d..136321a2cfdb57b9211972fc4e2240e7ce86697e 100644 (file)
@@ -302,8 +302,10 @@ static irqreturn_t psmouse_interrupt(struct serio *serio,
  * Check if this is a new device announcement (0xAA 0x00)
  */
        if (unlikely(psmouse->packet[0] == PSMOUSE_RET_BAT && psmouse->pktcnt <= 2)) {
-               if (psmouse->pktcnt == 1)
+               if (psmouse->pktcnt == 1) {
+                       psmouse->last = jiffies;
                        goto out;
+               }
 
                if (psmouse->packet[1] == PSMOUSE_RET_ID) {
                        __psmouse_set_state(psmouse, PSMOUSE_IGNORE);