Module Name:    src
Committed By:   skrll
Date:           Mon May  9 21:52:43 UTC 2016

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

Log Message:
Don't forget to use HTOO32 when adding OHCI_TD_R to td_flags for short
reads.

Should fix problems with BE machines and ohci as reported on
current-users by Michael


To generate a diff of this commit:
cvs rdiff -u -r1.261 -r1.262 src/sys/dev/usb/ohci.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/ohci.c
diff -u src/sys/dev/usb/ohci.c:1.261 src/sys/dev/usb/ohci.c:1.262
--- src/sys/dev/usb/ohci.c:1.261	Fri May  6 13:03:06 2016
+++ src/sys/dev/usb/ohci.c	Mon May  9 21:52:43 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: ohci.c,v 1.261 2016/05/06 13:03:06 skrll Exp $	*/
+/*	$NetBSD: ohci.c,v 1.262 2016/05/09 21:52:43 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.261 2016/05/06 13:03:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.262 2016/05/09 21:52:43 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -664,7 +664,7 @@ ohci_reset_std_chain(ohci_softc_t *sc, s
 		}
 	}
 	cur->td.td_flags |=
-	    (xfer->ux_flags & USBD_SHORT_XFER_OK ? OHCI_TD_R : 0);
+	    HTOO32(xfer->ux_flags & USBD_SHORT_XFER_OK ? OHCI_TD_R : 0);
 
 	if (!rd &&
 	    (flags & USBD_FORCE_SHORT_XFER) &&

Reply via email to