Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131932
b: refs/heads/master
c: 4d36845
h: refs/heads/master
v: v3
  • Loading branch information
Andy Whitcroft authored and Dmitry Torokhov committed Feb 28, 2009
1 parent 12dd6f0 commit c6bd12b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 139ebe8dc80dd74cb2ac9f5603d18fbf5cff049f
refs/heads/master: 4d368456808c977b8e9782dbe9542cf8ddedbab8
9 changes: 4 additions & 5 deletions trunk/drivers/input/mouse/synaptics.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,6 @@ static int synaptics_identify(struct psmouse *psmouse)

static int synaptics_query_hardware(struct psmouse *psmouse)
{
int retries = 0;

while ((retries++ < 3) && psmouse_reset(psmouse))
/* empty */;

if (synaptics_identify(psmouse))
return -1;
if (synaptics_model_id(psmouse))
Expand Down Expand Up @@ -582,6 +577,8 @@ static int synaptics_reconnect(struct psmouse *psmouse)
struct synaptics_data *priv = psmouse->private;
struct synaptics_data old_priv = *priv;

psmouse_reset(psmouse);

if (synaptics_detect(psmouse, 0))
return -1;

Expand Down Expand Up @@ -640,6 +637,8 @@ int synaptics_init(struct psmouse *psmouse)
if (!priv)
return -1;

psmouse_reset(psmouse);

if (synaptics_query_hardware(psmouse)) {
printk(KERN_ERR "Unable to query Synaptics hardware.\n");
goto init_fail;
Expand Down

0 comments on commit c6bd12b

Please sign in to comment.