Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 2013 02:14:00 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255921 - head/sys/dev/adb
Message-ID:  <201309280214.r8S2E0Id020450@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Sat Sep 28 02:13:59 2013
New Revision: 255921
URL: http://svnweb.freebsd.org/changeset/base/255921

Log:
  Fix powerpc/161045.  ams_poll() needs to return that any data is available, not
  just a new packet.
  
  PR:		powerpc/161045
  Approved by:	re(marius)
  MFC after:	1 week

Modified:
  head/sys/dev/adb/adb_mouse.c

Modified: head/sys/dev/adb/adb_mouse.c
==============================================================================
--- head/sys/dev/adb/adb_mouse.c	Sat Sep 28 00:44:59 2013	(r255920)
+++ head/sys/dev/adb/adb_mouse.c	Sat Sep 28 02:13:59 2013	(r255921)
@@ -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 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309280214.r8S2E0Id020450>