/[linux-patches]/genpatches-2.6/trunk/2.6.16/2605_psmouse-detection.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.16/2605_psmouse-detection.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 448 - (show annotations) (download) (as text)
Mon May 1 22:45:45 2006 UTC (14 years, 6 months ago) by dsd
File MIME type: text/x-diff
File size: 884 byte(s)
PS/2 mouse replug fix, thanks to paapaa125@hotmail.com in bug #130846
1 From: Dmitry Torokhov <dtor_core@ameritech.net>
2 Date: Sat, 29 Apr 2006 05:12:44 +0000 (-0400)
3 Subject: Input: psmouse - fix new device detection logic
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=89c9b4805a525bdd4c6e7529d06292f60ac837fc
5
6 Input: psmouse - fix new device detection logic
7
8 Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
9 ---
10
11 --- a/drivers/input/mouse/psmouse-base.c
12 +++ b/drivers/input/mouse/psmouse-base.c
13 @@ -302,8 +302,10 @@ static irqreturn_t psmouse_interrupt(str
14 * Check if this is a new device announcement (0xAA 0x00)
15 */
16 if (unlikely(psmouse->packet[0] == PSMOUSE_RET_BAT && psmouse->pktcnt <= 2)) {
17 - if (psmouse->pktcnt == 1)
18 + if (psmouse->pktcnt == 1) {
19 + psmouse->last = jiffies;
20 goto out;
21 + }
22
23 if (psmouse->packet[1] == PSMOUSE_RET_ID) {
24 __psmouse_set_state(psmouse, PSMOUSE_IGNORE);

  ViewVC Help
Powered by ViewVC 1.1.20