Module Name:    src
Committed By:   skrll
Date:           Sat May 14 07:14:31 UTC 2016

Modified Files:
        src/sys/dev/usb: ehci.c

Log Message:
Only set QH CMASK for FS/LS interrupt transfers


To generate a diff of this commit:
cvs rdiff -u -r1.251 -r1.252 src/sys/dev/usb/ehci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/ehci.c
diff -u src/sys/dev/usb/ehci.c:1.251 src/sys/dev/usb/ehci.c:1.252
--- src/sys/dev/usb/ehci.c:1.251	Fri May  6 16:30:01 2016
+++ src/sys/dev/usb/ehci.c	Sat May 14 07:14:31 2016
@@ -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 @@ ehci_open(struct usbd_pipe *pipe)
 			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 */

Reply via email to