lkml.org 
[lkml]   [2007]   [Mar]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromDmitry Torokhov <>
SubjectRe: [PATCH] Improve error recovery in serial mouse driver
DateFri, 16 Mar 2007 01:01:19 -0400
On Thursday 15 March 2007 15:16, Peter Osterlund wrote:
> If bytes get lost in the communication with a serial mouse using the
> MS protocol, the kernel driver could do a better job getting back in
> sync. The first byte in a packet has bit 6 set, and no other bytes
> have that bit set. Therefore, if a byte is received with bit 6 cleared
> when the driver thinks it is at byte 0 in the packet, the driver thinks
> wrong and the byte should just be ignored.
> 
> This fix prevents spurious left/right button events when the serial
> communication is disturbed by a CPU-hungry real-time process.
> 
> Signed-off-by: Peter Osterlund <petero2@telia.com>

Applied, thank you Peter.

-- 
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-03-16 06:03    [from the cache]
©2003-2008