Skip to contentSkip to conversation

Fix HIL Mouse driver for 2.6

PATCH In review Stuart Brady 2 participants 2 messages Aug 26, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix HIL Mouse driver for 2.6

Hi,

This patch makes the HIL pointer driver work in 2.6. I have tested it with both gpm and xfree86.

IIUC, users of PS/2 mice with HIL hubs should use the psmouse driver (CONFIG_MOUSE_PS2) instead. CONFIG_MOUSE_HIL is not needed for this.

The hil_ptr driver is for genuine HIL mice. To compile it you need CONFIG_MOUSE_HIL. CONFIG_MOUSE_PS2 is not needed for HIL mice.

Index: drivers/input/mouse/hil_ptr.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/input/mouse/hil_ptr.c,v retrieving revision 1.8

input/mouse/hil_ptr.c +2 -0
diff -u -r1.8 hil_ptr.c
@@ -176,6 +176,7 @@
 		btn = ptr->btnmap[btn];
 		input_report_key(dev, btn, !up);
 	}
+	input_sync(dev);
  out:
 	ptr->idx4 = 0;
 	up(&ptr->sem);
@@ -284,6 +285,7 @@
 
 	up(&(ptr->sem));
 
+	init_input_dev(&ptr->dev);
 	did = ptr->idd[0];
 	idd = ptr->idd + 1;
 	txt = "unknown";
Signature · 5 lines
Stuart Brady
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#1 lore raw

Hi Stuart,

I've applied both patches you sent to the parisc linux CVS tree.

Thanks a lot,
Helge

PS: I didn't tested them yet, but will try to do so later today....

Quoted 8 lines · Stuart Brady

This patch makes the HIL pointer driver work in 2.6. I have tested it with both gpm and xfree86.

IIUC, users of PS/2 mice with HIL hubs should use the psmouse driver (CONFIG_MOUSE_PS2) instead. CONFIG_MOUSE_HIL is not needed for this.

The hil_ptr driver is for genuine HIL mice. To compile it you need CONFIG_MOUSE_HIL. CONFIG_MOUSE_PS2 is not needed for HIL mice.

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux