Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Only set QH CMASK for FS/LS interrupt transfers



details:   https://anonhg.NetBSD.org/src/rev/248cd6d07694
branches:  trunk
changeset: 815378:248cd6d07694
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat May 14 07:14:31 2016 +0000

description:
Only set QH CMASK for FS/LS interrupt transfers

diffstat:

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

diffs (28 lines):

diff -r 40589b6e7c66 -r 248cd6d07694 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Sat May 14 06:49:34 2016 +0000
+++ b/sys/dev/usb/ehci.c        Sat May 14 07:14:31 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.251 2016/05/06 16:30:01 skrll Exp $ */
+/*     $NetBSD: ehci.c,v 1.252 2016/05/14 07:14:31 skrll Exp $ */
 
 /*
  * Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.251 2016/05/06 16:30:01 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.252 2016/05/14 07:14:31 skrll Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -1953,7 +1953,8 @@
                        sqh->qh.qh_endphub |= htole32(
                            EHCI_QH_SET_PORT(hshubport) |
                            EHCI_QH_SET_HUBA(hshubaddr) |
-                           EHCI_QH_SET_CMASK(0x08) /* XXX */
+                           (xfertype == UE_INTERRUPT ?
+                                EHCI_QH_SET_CMASK(0x08) : 0)
                        );
                sqh->qh.qh_curqtd = EHCI_NULL;
                /* Fill the overlay qTD */



Home | Main Index | Thread Index | Old Index