Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Byte swap the address in xhci_new_device appropr...
details: https://anonhg.NetBSD.org/src/rev/1f8a637de3ff
branches: trunk
changeset: 347202:1f8a637de3ff
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Aug 18 07:08:32 2016 +0000
description:
Byte swap the address in xhci_new_device appropriately. From t-hash
diffstat:
sys/dev/usb/xhci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r dd34b2f1604b -r 1f8a637de3ff sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c Wed Aug 17 22:04:51 2016 +0000
+++ b/sys/dev/usb/xhci.c Thu Aug 18 07:08:32 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xhci.c,v 1.63 2016/07/17 20:13:19 skrll Exp $ */
+/* $NetBSD: xhci.c,v 1.64 2016/08/18 07:08:32 skrll Exp $ */
/*
* Copyright (c) 2013 Jonathan A. Kollasch
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.63 2016/07/17 20:13:19 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.64 2016/08/18 07:08:32 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -2229,7 +2229,7 @@
cp = xhci_slot_get_dcv(sc, xs, XHCI_DCI_SLOT);
//hexdump("slot context", cp, sc->sc_ctxsz);
- uint8_t addr = XHCI_SCTX_3_DEV_ADDR_GET(cp[3]);
+ uint8_t addr = XHCI_SCTX_3_DEV_ADDR_GET(le32toh(cp[3]));
DPRINTFN(4, "device address %u", addr, 0, 0, 0);
/* XXX ensure we know when the hardware does something
we can't yet cope with */
Home |
Main Index |
Thread Index |
Old Index