svn commit: r256252 - stable/9/sys/dev/adb

Justin Hibbits jhibbits at FreeBSD.org
Thu Oct 10 03:57:47 UTC 2013


Author: jhibbits
Date: Thu Oct 10 03:57:47 2013
New Revision: 256252
URL: http://svnweb.freebsd.org/changeset/base/256252

Log:
  MFC r255921
  
  Fix powerpc/161045.  ams_poll() needs to return that any data is available, not
  just a new packet.
  
  PR:		powerpc/161045

Modified:
  stable/9/sys/dev/adb/adb_mouse.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/adb/adb_mouse.c
==============================================================================
--- stable/9/sys/dev/adb/adb_mouse.c	Thu Oct 10 03:50:23 2013	(r256251)
+++ stable/9/sys/dev/adb/adb_mouse.c	Thu Oct 10 03:57:47 2013	(r256252)
@@ -471,7 +471,8 @@ ams_poll(struct cdev *dev, int events, s
 		mtx_lock(&sc->sc_mtx);
 		
 		if (sc->xdelta == 0 && sc->ydelta == 0 && 
-		   sc->buttons == sc->last_buttons) {
+		   sc->buttons == sc->last_buttons &&
+		   sc->packet_read_len == 0) {
 			selrecord(p, &sc->rsel);
 			events = 0;
 		} else {


More information about the svn-src-stable-9 mailing list