diff options
| author | Andres Salomon <dilinger@debian.org> | 2008-01-12 16:30:50 -0500 |
|---|---|---|
| committer | Andres Salomon <dilinger@debian.org> | 2008-01-12 16:30:50 -0500 |
| commit | 16c5af40e430360e6fda0ed1ff2e8a83d5d17e8e (patch) | |
| tree | a4711d126fb08bc4b95d29d995c6afb0719c1ded /drivers/input/mouse | |
| parent | 478dcccc0d29be6238429621cefb1f78bf3c7ec6 (diff) | |
| download | lwn-16c5af40e430360e6fda0ed1ff2e8a83d5d17e8e.tar.gz lwn-16c5af40e430360e6fda0ed1ff2e8a83d5d17e8e.zip | |
OLPC: psmouse: we do get spurious PT packets. Lame.
Signed-off-by: Andres Salomon <dilinger@debian.org>
Diffstat (limited to 'drivers/input/mouse')
| -rw-r--r-- | drivers/input/mouse/olpc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/input/mouse/olpc.c b/drivers/input/mouse/olpc.c index 8e3519069ec8..9955013104bc 100644 --- a/drivers/input/mouse/olpc.c +++ b/drivers/input/mouse/olpc.c @@ -120,6 +120,10 @@ static int hgpk_fingerdown_hack(struct psmouse *psmouse, struct hgpk_packet *p) if (p->gs_down && !test_bit(BTN_TOUCH, p->dev->key)) { hgpk_dbg(psmouse, "spurious GS finger-down packet\n"); return 1; + } else if (psmouse->packet[0] == OLPC_PKT_PT && p->pt_down && + !test_bit(BTN_TOUCH, p->dev->key)) { + hgpk_dbg(psmouse, "spurious PT finger-down packet\n"); + return 1; } return 0; |
