svn commit: r358697 - stable/11/sys/dev/usb/input
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Mar 6 12:02:43 UTC 2020
Author: hselasky
Date: Fri Mar 6 12:02:42 2020
New Revision: 358697
URL: https://svnweb.freebsd.org/changeset/base/358697
Log:
MFC r358609:
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
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/dev/usb/input/ukbd.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/usb/input/ukbd.c
==============================================================================
--- stable/11/sys/dev/usb/input/ukbd.c Fri Mar 6 12:01:58 2020 (r358696)
+++ stable/11/sys/dev/usb/input/ukbd.c Fri Mar 6 12:02:42 2020 (r358697)
@@ -543,15 +543,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-stable
mailing list