Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys/dev/pckbport Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/812e4786c450
branches:  netbsd-9
changeset: 1001814:812e4786c450
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jun 20 13:53:14 2020 +0000

description:
Pull up following revision(s) (requested by nia in ticket #954):

        sys/dev/pckbport/synaptics.c: revision 1.67

synaptics: Don't reset the device multiple times in succession
Cherrypicked from a patch from an anonymous contributor.

diffstat:

 sys/dev/pckbport/synaptics.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 60cec76919cc -r 812e4786c450 sys/dev/pckbport/synaptics.c
--- a/sys/dev/pckbport/synaptics.c      Sat Jun 20 13:51:46 2020 +0000
+++ b/sys/dev/pckbport/synaptics.c      Sat Jun 20 13:53:14 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: synaptics.c,v 1.50.2.5 2020/04/29 13:25:42 martin Exp $        */
+/*     $NetBSD: synaptics.c,v 1.50.2.6 2020/06/20 13:53:14 martin Exp $        */
 
 /*
  * Copyright (c) 2005, Steve C. Woodford
@@ -48,7 +48,7 @@
 #include "opt_pms.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.50.2.5 2020/04/29 13:25:42 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.50.2.6 2020/06/20 13:53:14 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1191,7 +1191,7 @@
 
        getmicrouptime(&psc->current);
 
-       if (psc->inputstate != 0) {
+       if (psc->inputstate > 0) {
                timersub(&psc->current, &psc->last, &diff);
                if (diff.tv_sec > 0 || diff.tv_usec >= 40000) {
                        aprint_debug_dev(psc->sc_dev,



Home | Main Index | Thread Index | Old Index