svn commit: r358609 - head/sys/dev/usb/input

Hans Petter Selasky hselasky at FreeBSD.org
Wed Mar 4 09:46:44 UTC 2020


Author: hselasky
Date: Wed Mar  4 09:46:42 2020
New Revision: 358609
URL: https://svnweb.freebsd.org/changeset/base/358609

Log:
  Restart the USB keyboard repeat timer at every valid key-press.
  
  This fixes a regression issue after r357861.
  
  Reported by:	James Wright <james.wright at jigsawdezign.com>
  PR:	224592
  PR:	233884
  MFC after:	3 days
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/dev/usb/input/ukbd.c

Modified: head/sys/dev/usb/input/ukbd.c
==============================================================================
--- head/sys/dev/usb/input/ukbd.c	Wed Mar  4 04:44:33 2020	(r358608)
+++ head/sys/dev/usb/input/ukbd.c	Wed Mar  4 09:46:42 2020	(r358609)
@@ -522,15 +522,9 @@ ukbd_interrupt(struct ukbd_softc *sc)
 				if (ukbd_is_modifier_key(key))
 					continue;
 
-				/*
-				 * Check for first new key and set
-				 * initial delay and [re]start timer:
-				 */
-				if (sc->sc_repeat_key == 0) {
-					sc->sc_co_basetime = sbinuptime();
-					sc->sc_delay = sc->sc_kbd.kb_delay1;
-					ukbd_start_timer(sc);
-				}
+				sc->sc_co_basetime = sbinuptime();
+				sc->sc_delay = sc->sc_kbd.kb_delay1;
+				ukbd_start_timer(sc);
 
 				/* set repeat time for last key */
 				sc->sc_repeat_time = now + sc->sc_kbd.kb_delay1;


More information about the svn-src-all mailing list