Module Name: src Committed By: nia Date: Thu May 14 18:06:58 UTC 2020
Modified Files: src/sys/dev/pckbport: synaptics.c Log Message: synaptics: Don't reset the device multiple times in succession Cherrypicked from a patch from an anonymous contributor. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/dev/pckbport/synaptics.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pckbport/synaptics.c diff -u src/sys/dev/pckbport/synaptics.c:1.66 src/sys/dev/pckbport/synaptics.c:1.67 --- src/sys/dev/pckbport/synaptics.c:1.66 Tue Apr 28 19:22:58 2020 +++ src/sys/dev/pckbport/synaptics.c Thu May 14 18:06:58 2020 @@ -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 @@ pms_synaptics_input(void *vsc, int data) 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,