Module Name:    src
Committed By:   msaitoh
Date:           Mon Feb 10 07:48:02 UTC 2020

Modified Files:
        src/sys/dev/ic: elinkxl.c

Log Message:
 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]


To generate a diff of this commit:
cvs rdiff -u -r1.136 -r1.137 src/sys/dev/ic/elinkxl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/elinkxl.c
diff -u src/sys/dev/ic/elinkxl.c:1.136 src/sys/dev/ic/elinkxl.c:1.137
--- src/sys/dev/ic/elinkxl.c:1.136	Fri Feb  7 00:56:48 2020
+++ src/sys/dev/ic/elinkxl.c	Mon Feb 10 07:48:02 2020
@@ -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 @@ ex_getstats(struct ex_softc *sc)
 	(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);

Reply via email to