Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Fix 10year old bug of mine affecting interrupt I...



details:   https://anonhg.NetBSD.org/src/rev/65bc18e04eb8
branches:  trunk
changeset: 812082:65bc18e04eb8
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Nov 30 13:26:09 2015 +0000

description:
Fix 10year old bug of mine affecting interrupt IN transfers.

diffstat:

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

diffs (27 lines):

diff -r 0b77276e325c -r 65bc18e04eb8 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Mon Nov 30 10:37:25 2015 +0000
+++ b/sys/dev/usb/ohci.c        Mon Nov 30 13:26:09 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.256 2015/08/19 06:23:35 skrll Exp $ */
+/*     $NetBSD: ohci.c,v 1.257 2015/11/30 13:26:09 skrll Exp $ */
 
 /*
  * Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.256 2015/08/19 06:23:35 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.257 2015/11/30 13:26:09 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3191,7 +3191,7 @@
        tail->xfer = NULL;
 
        data->td.td_flags = HTOO32(
-               isread ? OHCI_TD_IN : OHCI_TD_OUT |
+               (isread ? OHCI_TD_IN : OHCI_TD_OUT) |
                OHCI_TD_NOCC |
                OHCI_TD_SET_DI(1) | OHCI_TD_TOGGLE_CARRY);
        if (xfer->flags & USBD_SHORT_XFER_OK)



Home | Main Index | Thread Index | Old Index