Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix powerpc/161045. ams_poll() needs to return that any data is avail…

…able, not

just a new packet.

PR:		powerpc/161045
Approved by:	re(marius)
MFC after:	1 week
  • Loading branch information...
commit 2ad5be846b82ebb00c83a6576482302ab8abb885 1 parent 6f3c292
@chmeeedalf chmeeedalf authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  sys/dev/adb/adb_mouse.c
View
3  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 {
Please sign in to comment.
Something went wrong with that request. Please try again.