Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb correct a bad length parameter for a bus_space_b...



details:   https://anonhg.NetBSD.org/src/rev/182366aee21d
branches:  trunk
changeset: 783921:182366aee21d
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jan 12 18:53:21 2013 +0000

description:
correct a bad length parameter for a bus_space_barrier call (takes number of bytes, not number of dwords)

diffstat:

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

diffs (27 lines):

diff -r 27e97ff667b8 -r 182366aee21d sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c     Sat Jan 12 18:37:09 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c     Sat Jan 12 18:53:21 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc_otg.c,v 1.16 2013/01/12 18:37:09 jmcneill Exp $    */
+/*     $NetBSD: dwc_otg.c,v 1.17 2013/01/12 18:53:21 jmcneill Exp $    */
 
 /*-
  * Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.16 2013/01/12 18:37:09 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.17 2013/01/12 18:53:21 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3093,7 +3093,7 @@
                    DOTG_DFIFO(td->channel),
                    sc->sc_tx_bounce_buffer, (count + 3) / 4);
                bus_space_barrier(sc->sc_iot, sc->sc_ioh,
-                   DOTG_DFIFO(td->channel), (count + 3) /4,
+                   DOTG_DFIFO(td->channel), ((count + 3) / 4) * 4,
                    BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE);
        }
 



Home | Main Index | Thread Index | Old Index