Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/broadcom Ensure correctness of bus_dmamap_sync ...
details: https://anonhg.NetBSD.org/src/rev/b3d9b8d8a129
branches: trunk
changeset: 332655:b3d9b8d8a129
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Oct 02 11:58:12 2014 +0000
description:
Ensure correctness of bus_dmamap_sync operations. Shouldn't affect RPI.
diffstat:
sys/arch/arm/broadcom/bcm2835_mbox.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 62cad8c808dc -r b3d9b8d8a129 sys/arch/arm/broadcom/bcm2835_mbox.c
--- a/sys/arch/arm/broadcom/bcm2835_mbox.c Thu Oct 02 11:39:45 2014 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_mbox.c Thu Oct 02 11:58:12 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_mbox.c,v 1.6 2013/04/14 15:11:52 skrll Exp $ */
+/* $NetBSD: bcm2835_mbox.c,v 1.7 2014/10/02 11:58:12 skrll Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_mbox.c,v 1.6 2013/04/14 15:11:52 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_mbox.c,v 1.7 2014/10/02 11:58:12 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -162,6 +162,7 @@
bus_dmamap_sync(sc->sc_dmat, map, 0, buflen, BUS_DMASYNC_POSTWRITE);
bus_dmamap_sync(sc->sc_dmat, map, 0, buflen, BUS_DMASYNC_PREREAD);
bcmmbox_read(chan, pres);
+ bus_dmamap_sync(sc->sc_dmat, map, 0, buflen, BUS_DMASYNC_POSTREAD);
mutex_exit(&sc->sc_lock);
Home |
Main Index |
Thread Index |
Old Index