Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pckbport synaptics: Don't reset the device multiple ...



details:   https://anonhg.NetBSD.org/src/rev/6d3a64db858e
branches:  trunk
changeset: 932732:6d3a64db858e
user:      nia <nia%NetBSD.org@localhost>
date:      Thu May 14 18:06:58 2020 +0000

description:
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 ff3c2bf3f73e -r 6d3a64db858e sys/dev/pckbport/synaptics.c
--- a/sys/dev/pckbport/synaptics.c      Thu May 14 17:01:34 2020 +0000
+++ b/sys/dev/pckbport/synaptics.c      Thu May 14 18:06:58 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: synaptics.c,v 1.66 2020/04/28 19:22:58 jmcneill Exp $  */
+/*     $NetBSD: synaptics.c,v 1.67 2020/05/14 18:06:58 nia 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.66 2020/04/28 19:22:58 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.67 2020/05/14 18:06:58 nia Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1192,7 +1192,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