Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Restore an register read for RX_FRAMES_OK which w...



details:   https://anonhg.NetBSD.org/src/rev/92d8d4bd6140
branches:  trunk
changeset: 744670:92d8d4bd6140
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Feb 10 07:48:02 2020 +0000

description:
Restore an register read for RX_FRAMES_OK which was removed in rev. 1.133.
All statistics registers should be read to ACK the interrupt. Fixes PR#54920.

XXX pullup-[89]

diffstat:

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

diffs (26 lines):

diff -r fba92207e2bd -r 92d8d4bd6140 sys/dev/ic/elinkxl.c
--- a/sys/dev/ic/elinkxl.c      Mon Feb 10 07:13:06 2020 +0000
+++ b/sys/dev/ic/elinkxl.c      Mon Feb 10 07:48:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elinkxl.c,v 1.136 2020/02/07 00:56:48 thorpej Exp $    */
+/*     $NetBSD: elinkxl.c,v 1.137 2020/02/10 07:48:02 msaitoh Exp $    */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.136 2020/02/07 00:56:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: elinkxl.c,v 1.137 2020/02/10 07:48:02 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1522,6 +1522,7 @@
        (void)bus_space_read_1(iot, ioh, TX_AFTER_1_COLLISION);
        (void)bus_space_read_1(iot, ioh, TX_NO_SQE);
        (void)bus_space_read_1(iot, ioh, TX_CD_LOST);
+       (void)bus_space_read_1(iot, ioh, RX_FRAMES_OK);
        GO_WINDOW(4);
        (void)bus_space_read_1(iot, ioh, ELINK_W4_BADSSD);
        GO_WINDOW(1);



Home | Main Index | Thread Index | Old Index