Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/670ee33e83be
branches:  netbsd-9
changeset: 843245:670ee33e83be
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 22 12:13:33 2019 +0000

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

        sys/dev/ic/i82557.c: revision 1.155

Fix direction of the loop.

diffstat:

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

diffs (27 lines):

diff -r 1d0e14d0f63e -r 670ee33e83be sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c       Sun Sep 22 10:36:30 2019 +0000
+++ b/sys/dev/ic/i82557.c       Sun Sep 22 12:13:33 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82557.c,v 1.154 2019/07/09 08:46:58 msaitoh Exp $     */
+/*     $NetBSD: i82557.c,v 1.154.2.1 2019/09/22 12:13:33 martin Exp $  */
 
 /*-
  * Copyright (c) 1997, 1998, 1999, 2001, 2002 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.154 2019/07/09 08:46:58 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.154.2.1 2019/09/22 12:13:33 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1892,7 +1892,7 @@
        CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL, sc->sc_cddma + FXP_CDIASOFF);
        fxp_scb_cmd(sc, FXP_SCB_COMMAND_CU_START);
        /* ...and wait for it to complete. */
-       for (i = 1000; i > 0; i++) {
+       for (i = 1000; i > 0; i--) {
                FXP_CDIASSYNC(sc,
                    BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
                status = le16toh(cb_ias->cb_status);



Home | Main Index | Thread Index | Old Index