Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb Shuffle comment



details:   https://anonhg.NetBSD.org/src/rev/5487f08bc96e
branches:  nick-nhusb
changeset: 334318:5487f08bc96e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 14 10:44:57 2015 +0000

description:
Shuffle comment

diffstat:

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

diffs (62 lines):

diff -r 91103fe809b2 -r 5487f08bc96e sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Sat Nov 14 10:37:09 2015 +0000
+++ b/sys/dev/usb/ehci.c        Sat Nov 14 10:44:57 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.234.2.66 2015/11/14 10:37:09 skrll Exp $ */
+/*     $NetBSD: ehci.c,v 1.234.2.67 2015/11/14 10:44:57 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.234.2.66 2015/11/14 10:37:09 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.67 2015/11/14 10:44:57 skrll Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -3723,8 +3723,8 @@
 
        mutex_enter(&sc->sc_lock);
 
-       /* Insert qTD in QH list. */
-       ehci_set_qh_qtd(sqh, setup); /* also does usb_syncmem(sqh) */
+       /* Insert qTD in QH list - also does usb_syncmem(sqh) */
+       ehci_set_qh_qtd(sqh, setup);
        if (xfer->ux_timeout && !sc->sc_bus.ub_usepolling) {
                callout_reset(&xfer->ux_callout, mstohz(xfer->ux_timeout),
                    ehci_timeout, xfer);
@@ -3928,7 +3928,9 @@
 
        usb_syncmem(&xfer->ux_dmabuf, 0, xfer->ux_length,
            isread ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE);
-       ehci_set_qh_qtd(sqh, exfer->ex_sqtdstart); /* also does usb_syncmem(sqh) */
+
+       /* also does usb_syncmem(sqh) */
+       ehci_set_qh_qtd(sqh, exfer->ex_sqtdstart);
        if (xfer->ux_timeout && !sc->sc_bus.ub_usepolling) {
                callout_reset(&xfer->ux_callout, mstohz(xfer->ux_timeout),
                    ehci_timeout, xfer);
@@ -4151,7 +4153,9 @@
 
        usb_syncmem(&xfer->ux_dmabuf, 0, xfer->ux_length,
            isread ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE);
-       ehci_set_qh_qtd(sqh, data); /* also does usb_syncmem(sqh) */
+
+       /* also does usb_syncmem(sqh) */
+       ehci_set_qh_qtd(sqh, data);
        if (xfer->ux_timeout && !sc->sc_bus.ub_usepolling) {
                callout_reset(&xfer->ux_callout, mstohz(xfer->ux_timeout),
                    ehci_timeout, xfer);
@@ -4248,7 +4252,9 @@
                exfer->ex_sqtdend = end;
 
                data = exfer->ex_sqtdstart;
-               ehci_set_qh_qtd(sqh, data); /* also does usb_syncmem(sqh) */
+
+               /* also does usb_syncmem(sqh) */
+               ehci_set_qh_qtd(sqh, data);
                if (xfer->ux_timeout && !sc->sc_bus.ub_usepolling) {
                        callout_reset(&xfer->ux_callout,
                            mstohz(xfer->ux_timeout), ehci_timeout, xfer);



Home | Main Index | Thread Index | Old Index