Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Fix scheduling of interrupt transfers. I can now...



details:   https://anonhg.NetBSD.org/src/rev/b5a839f0ed72
branches:  trunk
changeset: 347424:b5a839f0ed72
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Aug 25 20:14:02 2016 +0000

description:
Fix scheduling of interrupt transfers.  I can now use a hub with my flxd
ISA USB adapter

diffstat:

 sys/dev/ic/sl811hs.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 9744773ba6ce -r b5a839f0ed72 sys/dev/ic/sl811hs.c
--- a/sys/dev/ic/sl811hs.c      Thu Aug 25 18:16:10 2016 +0000
+++ b/sys/dev/ic/sl811hs.c      Thu Aug 25 20:14:02 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sl811hs.c,v 1.93 2016/07/01 09:03:28 skrll Exp $       */
+/*     $NetBSD: sl811hs.c,v 1.94 2016/08/25 20:14:02 skrll Exp $       */
 
 /*
  * Not (c) 2007 Matthew Orgass
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.93 2016/07/01 09:03:28 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.94 2016/08/25 20:14:02 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_slhci.h"
@@ -920,6 +920,11 @@
                else
                        spipe->buffer = NULL;
                spipe->lastframe = t->frame;
+               if (spipe->ptype == PT_INTR) {
+                       spipe->frame = spipe->lastframe +
+                           spipe->pipe.up_interval;
+               }
+
 #if defined(DEBUG) || defined(SLHCI_DEBUG)
                if (__predict_false(spipe->ptype == PT_INTR &&
                    xfer->ux_length > spipe->tregs[LEN])) {



Home | Main Index | Thread Index | Old Index