Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Don't forget to use HTOO32 when adding OHCI_TD_R...



details:   https://anonhg.NetBSD.org/src/rev/5496f2c7b155
branches:  trunk
changeset: 815287:5496f2c7b155
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon May 09 21:52:43 2016 +0000

description:
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

diffstat:

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

diffs (27 lines):

diff -r fc3721f2a7cd -r 5496f2c7b155 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Mon May 09 21:46:56 2016 +0000
+++ b/sys/dev/usb/ohci.c        Mon May 09 21:52:43 2016 +0000
@@ -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 @@
                }
        }
        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) &&



Home | Main Index | Thread Index | Old Index