summaryrefslogtreecommitdiffstats
path: root/sys/dev/adb
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2013-09-28 02:13:59 +0000
committerjhibbits <jhibbits@FreeBSD.org>2013-09-28 02:13:59 +0000
commit2ad5be846b82ebb00c83a6576482302ab8abb885 (patch)
tree93fc36ec041e3d95d572df82ad068f29caa27983 /sys/dev/adb
parent6f3c292c36feffcae5ed9c5c252131c62e72dd05 (diff)
downloadFreeBSD-src-2ad5be846b82ebb00c83a6576482302ab8abb885.zip
FreeBSD-src-2ad5be846b82ebb00c83a6576482302ab8abb885.tar.gz
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
Diffstat (limited to 'sys/dev/adb')
-rw-r--r--sys/dev/adb/adb_mouse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/adb/adb_mouse.c b/sys/dev/adb/adb_mouse.c
index 70ad5c3..b80a31b 100644
--- a/sys/dev/adb/adb_mouse.c
+++ b/sys/dev/adb/adb_mouse.c
@@ -471,7 +471,8 @@ ams_poll(struct cdev *dev, int events, struct thread *p)
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 {
OpenPOWER on IntegriCloud