diff options
| author | <jgarzik@pretzel.yyz.us> | 2005-06-04 00:40:40 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-04 00:40:40 -0400 |
| commit | ae20ea8525a80a863f70d332cf47b71bd9f54c1f (patch) | |
| tree | 9d3cedeb65db521a8436b545bd91641549a18d24 /drivers/input/mouse/psmouse-base.c | |
| parent | f497ba735fc9ff4e35a19641143708b3be1c7061 (diff) | |
| parent | 8be3de3fd8469154a2b3e18a4712032dac5b4a53 (diff) | |
Automatic merge of /spare/repo/linux-2.6/.git branch HEAD
Diffstat (limited to 'drivers/input/mouse/psmouse-base.c')
| -rw-r--r-- | drivers/input/mouse/psmouse-base.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c index cd8509549eac..019034b21a0b 100644 --- a/drivers/input/mouse/psmouse-base.c +++ b/drivers/input/mouse/psmouse-base.c | |||
| @@ -518,13 +518,16 @@ static int psmouse_probe(struct psmouse *psmouse) | |||
| 518 | /* | 518 | /* |
| 519 | * First, we check if it's a mouse. It should send 0x00 or 0x03 | 519 | * First, we check if it's a mouse. It should send 0x00 or 0x03 |
| 520 | * in case of an IntelliMouse in 4-byte mode or 0x04 for IM Explorer. | 520 | * in case of an IntelliMouse in 4-byte mode or 0x04 for IM Explorer. |
| 521 | * Sunrex K8561 IR Keyboard/Mouse reports 0xff on second and subsequent | ||
| 522 | * ID queries, probably due to a firmware bug. | ||
| 521 | */ | 523 | */ |
| 522 | 524 | ||
| 523 | param[0] = 0xa5; | 525 | param[0] = 0xa5; |
| 524 | if (ps2_command(ps2dev, param, PSMOUSE_CMD_GETID)) | 526 | if (ps2_command(ps2dev, param, PSMOUSE_CMD_GETID)) |
| 525 | return -1; | 527 | return -1; |
| 526 | 528 | ||
| 527 | if (param[0] != 0x00 && param[0] != 0x03 && param[0] != 0x04) | 529 | if (param[0] != 0x00 && param[0] != 0x03 && |
| 530 | param[0] != 0x04 && param[0] != 0xff) | ||
| 528 | return -1; | 531 | return -1; |
| 529 | 532 | ||
| 530 | /* | 533 | /* |
| @@ -972,7 +975,7 @@ static int psmouse_set_maxproto(const char *val, struct kernel_param *kp) | |||
| 972 | return -EINVAL; | 975 | return -EINVAL; |
| 973 | 976 | ||
| 974 | if (!strncmp(val, "any", 3)) { | 977 | if (!strncmp(val, "any", 3)) { |
| 975 | *((unsigned int *)kp->arg) = -1UL; | 978 | *((unsigned int *)kp->arg) = -1U; |
| 976 | return 0; | 979 | return 0; |
| 977 | } | 980 | } |
| 978 | 981 | ||
