diff options
author | delphij <delphij@FreeBSD.org> | 2012-09-07 19:00:27 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-09-07 19:00:27 +0000 |
commit | d7e79a2a14949d354f0ab7c4a9723c50d7b2652f (patch) | |
tree | 71732ee8d33d7fbf4475947dcdf49fa1315ef59f /sys/dev/hptmv | |
parent | 6e56009935d9607637d6d991886ebaf9f074187f (diff) | |
download | FreeBSD-src-d7e79a2a14949d354f0ab7c4a9723c50d7b2652f.zip FreeBSD-src-d7e79a2a14949d354f0ab7c4a9723c50d7b2652f.tar.gz |
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
MFC after: 1 month
Diffstat (limited to 'sys/dev/hptmv')
-rw-r--r-- | sys/dev/hptmv/entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hptmv/entry.c b/sys/dev/hptmv/entry.c index 7e92d4a..8dfa7e2 100644 --- a/sys/dev/hptmv/entry.c +++ b/sys/dev/hptmv/entry.c @@ -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); } |