diff options
author | Xin LI <delphij@FreeBSD.org> | 2012-09-07 19:00:27 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2012-09-07 19:00:27 +0000 |
commit | a8bc743735c9240a32f575e6ff194b6f128ddacc (patch) | |
tree | 71732ee8d33d7fbf4475947dcdf49fa1315ef59f /sys/dev/hptmv | |
parent | 51ba7b6f3e4dde2e27bb9b174f3e0cb0400720fc (diff) | |
download | src-a8bc743735c9240a32f575e6ff194b6f128ddacc.tar.gz src-a8bc743735c9240a32f575e6ff194b6f128ddacc.zip |
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
Notes
Notes:
svn path=/head/; revision=240210
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 7e92d4a001b4..8dfa7e2a0d68 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); } |