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/725e3c743d77
branches: trunk
changeset: 972050:725e3c743d77
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 213d401e9c3a -r 725e3c743d77 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