svn commit: r242106 - stable/8/sys/dev/hptmv
Xin LI
delphij at FreeBSD.org
Fri Oct 26 00:30:44 UTC 2012
Author: delphij
Date: Fri Oct 26 00:30:44 2012
New Revision: 242106
URL: http://svn.freebsd.org/changeset/base/242106
Log:
MFC r240210:
It seems that what the code really meant is that when a write is completed,
do a BUS_DMASYNC_POSTWRITE over the DMA map. The way it currently is would
only do POSTREAD for read transactions.
Submitted by: Sascha Wildner
Modified:
stable/8/sys/dev/hptmv/entry.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/dev/ (props changed)
stable/8/sys/dev/hptmv/ (props changed)
Modified: stable/8/sys/dev/hptmv/entry.c
==============================================================================
--- stable/8/sys/dev/hptmv/entry.c Fri Oct 26 00:28:29 2012 (r242105)
+++ stable/8/sys/dev/hptmv/entry.c Fri Oct 26 00:30:44 2012 (r242106)
@@ -3046,7 +3046,7 @@ fOsCommandDone(_VBUS_ARG PCommand pCmd)
if (pCmd->cf_data_in) {
bus_dmamap_sync(pAdapter->io_dma_parent, pmap->dma_map, BUS_DMASYNC_POSTREAD);
}
- else if (pCmd->cf_data_in) {
+ else if (pCmd->cf_data_out) {
bus_dmamap_sync(pAdapter->io_dma_parent, pmap->dma_map, BUS_DMASYNC_POSTWRITE);
}
More information about the svn-src-all
mailing list