correct a bad length parameter for a bus_space_barrier call (takes number of bytes, not number of dwords)
This commit is contained in:
parent
6571302412
commit
301ed88549
|
@ -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.
|
* Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -3093,7 +3093,7 @@ send_pkt_sync:
|
||||||
DOTG_DFIFO(td->channel),
|
DOTG_DFIFO(td->channel),
|
||||||
sc->sc_tx_bounce_buffer, (count + 3) / 4);
|
sc->sc_tx_bounce_buffer, (count + 3) / 4);
|
||||||
bus_space_barrier(sc->sc_iot, sc->sc_ioh,
|
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);
|
BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue