Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb ukbd(4): Fix previous change to initial LED flas...



details:   https://anonhg.NetBSD.org/src/rev/c4c63218c3a5
branches:  trunk
changeset: 359524:c4c63218c3a5
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jan 08 17:34:14 2022 +0000

description:
ukbd(4): Fix previous change to initial LED flashing.

Without this change the LEDs would get stuck on until the first
keypress.  (This also seemed to trigger a crash in heavy load on
bringing aue(4) up and down over and over again while unplugging, but
I'm not sure why and I hope it's not actually related...)

diffstat:

 sys/dev/usb/ukbd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 939e01961fa0 -r c4c63218c3a5 sys/dev/usb/ukbd.c
--- a/sys/dev/usb/ukbd.c        Sat Jan 08 17:25:19 2022 +0000
+++ b/sys/dev/usb/ukbd.c        Sat Jan 08 17:34:14 2022 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ukbd.c,v 1.156 2021/12/31 14:24:06 riastradh Exp $        */
+/*      $NetBSD: ukbd.c,v 1.157 2022/01/08 17:34:14 riastradh Exp $        */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.156 2021/12/31 14:24:06 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.157 2022/01/08 17:34:14 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -490,6 +490,7 @@
        /* Flash the leds; no real purpose, just shows we're alive. */
        ukbd_set_leds(sc, WSKBD_LED_SCROLL | WSKBD_LED_NUM | WSKBD_LED_CAPS
                        | WSKBD_LED_COMPOSE);
+       sc->sc_leds_set = 0;    /* not explicitly set by wskbd yet */
        callout_reset(&sc->sc_ledreset, mstohz(400), ukbd_delayed_leds_off,
            sc);
 



Home | Main Index | Thread Index | Old Index