Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Getting HCINT_SOFTWARE_ONLY from the hardware is...



details:   https://anonhg.NetBSD.org/src/rev/f63ef9955ebe
branches:  trunk
changeset: 784424:f63ef9955ebe
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jan 28 08:22:01 2013 +0000

description:
Getting HCINT_SOFTWARE_ONLY from the hardware is an error. KASSERT that
it doesn't happen.

diffstat:

 sys/dev/usb/dwc_otg.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 62f92f2b2466 -r f63ef9955ebe sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c     Mon Jan 28 08:19:33 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c     Mon Jan 28 08:22:01 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc_otg.c,v 1.39 2013/01/28 08:19:33 skrll Exp $       */
+/*     $NetBSD: dwc_otg.c,v 1.40 2013/01/28 08:22:01 skrll Exp $       */
 
 /*-
  * Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.39 2013/01/28 08:19:33 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.40 2013/01/28 08:22:01 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3255,7 +3255,8 @@
 //                     DPRINTF("ch %d intrs %08x\n", ch, intrs);
 
                        DWC_OTG_WRITE_4(sc, DOTG_HCINT(ch), intrs);
-                       intrs &= ~HCINT_SOFTWARE_ONLY;
+
+                       KASSERT((intrs & HCINT_SOFTWARE_ONLY) == 0);
                        sc->sc_chan_state[ch].hcint |= intrs;
                }
        }



Home | Main Index | Thread Index | Old Index