Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190823
b: refs/heads/master
c: ef110b2
h: refs/heads/master
i:
  190821: ae6e8c0
  190819: 7ced5be
  190815: 7d6eb99
v: v3
  • Loading branch information
Dmitry Torokhov committed May 13, 2010
1 parent 579faf0 commit fa67653
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 504e8beed161bd11a2c6cbb8aaf352c14d39b5bb
refs/heads/master: ef110b24e28f36620f63dab94708a17c7e267358
14 changes: 10 additions & 4 deletions trunk/drivers/input/mouse/psmouse-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,7 @@ static int psmouse_reconnect(struct serio *serio)
struct psmouse *psmouse = serio_get_drvdata(serio);
struct psmouse *parent = NULL;
struct serio_driver *drv = serio->drv;
unsigned char type;
int rc = -1;

if (!drv || !psmouse) {
Expand All @@ -1413,10 +1414,15 @@ static int psmouse_reconnect(struct serio *serio)
if (psmouse->reconnect) {
if (psmouse->reconnect(psmouse))
goto out;
} else if (psmouse_probe(psmouse) < 0 ||
psmouse->type != psmouse_extensions(psmouse,
psmouse_max_proto, false)) {
goto out;
} else {
psmouse_reset(psmouse);

if (psmouse_probe(psmouse) < 0)
goto out;

type = psmouse_extensions(psmouse, psmouse_max_proto, false);
if (psmouse->type != type)
goto out;
}

/* ok, the device type (and capabilities) match the old one,
Expand Down

0 comments on commit fa67653

Please sign in to comment.