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
This commit is contained in:
Justin Hibbits 2013-09-28 02:13:59 +00:00
parent a0774d09d3
commit 791ab37d80

View File

@ -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 {