Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/pci Pull up following revision(s) (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/b0748939e468
branches:  netbsd-9
changeset: 458368:b0748939e468
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 22 12:15:28 2019 +0000

description:
Pull up following revision(s) (requested by maxv in ticket #216):

        sys/dev/pci/if_age.c: revision 1.61

Fix direction of the loop.

diffstat:

 sys/dev/pci/if_age.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8ae85f3566ff -r b0748939e468 sys/dev/pci/if_age.c
--- a/sys/dev/pci/if_age.c      Sun Sep 22 12:13:33 2019 +0000
+++ b/sys/dev/pci/if_age.c      Sun Sep 22 12:15:28 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_age.c,v 1.60 2019/07/09 08:46:58 msaitoh Exp $ */
+/*     $NetBSD: if_age.c,v 1.60.2.1 2019/09/22 12:15:28 martin Exp $ */
 /*     $OpenBSD: if_age.c,v 1.1 2009/01/16 05:00:34 kevlo Exp $        */
 
 /*-
@@ -31,7 +31,7 @@
 /* Driver for Attansic Technology Corp. L1 Gigabit Ethernet. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.60 2019/07/09 08:46:58 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.60.2.1 2019/09/22 12:15:28 martin Exp $");
 
 #include "vlan.h"
 
@@ -575,7 +575,7 @@
                 */
                CSR_WRITE_4(sc, AGE_TWSI_CTRL, CSR_READ_4(sc, AGE_TWSI_CTRL) |
                    TWSI_CTRL_SW_LD_START);
-               for (i = 100; i > 0; i++) {
+               for (i = 100; i > 0; i--) {
                        DELAY(1000);
                        reg = CSR_READ_4(sc, AGE_TWSI_CTRL);
                        if ((reg & TWSI_CTRL_SW_LD_START) == 0)



Home | Main Index | Thread Index | Old Index