Source-Changes-HG archive

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

[src/bouyer-socketcan]: src/sys/arch/arm/allwinner abort may clear sc_m_trans...



details:   https://anonhg.NetBSD.org/src/rev/16bd546c5012
branches:  bouyer-socketcan
changeset: 820911:16bd546c5012
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu May 25 18:26:36 2017 +0000

description:
abort may clear sc_m_transmit but leave OACTIVE, so unconditionally clear
OACTIVE in TX interrupt.

diffstat:

 sys/arch/arm/allwinner/awin_can.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 531eaeaee943 -r 16bd546c5012 sys/arch/arm/allwinner/awin_can.c
--- a/sys/arch/arm/allwinner/awin_can.c Thu May 25 18:23:15 2017 +0000
+++ b/sys/arch/arm/allwinner/awin_can.c Thu May 25 18:26:36 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: awin_can.c,v 1.1.2.7 2017/05/25 18:23:15 bouyer Exp $  */
+/*     $NetBSD: awin_can.c,v 1.1.2.8 2017/05/25 18:26:36 bouyer Exp $  */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: awin_can.c,v 1.1.2.7 2017/05/25 18:23:15 bouyer Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_can.c,v 1.1.2.8 2017/05/25 18:26:36 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -297,9 +297,8 @@
                can_input(ifp, m); /* loopback */
                sc->sc_m_transmit = NULL;
                ifp->if_timer = 0;
-               ifp->if_flags &= ~IFF_OACTIVE;
        }
-
+       ifp->if_flags &= ~IFF_OACTIVE;
        if_schedule_deferred_start(ifp);
 }
 



Home | Main Index | Thread Index | Old Index