diff options
author | ian <ian@FreeBSD.org> | 2013-12-13 16:41:04 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2013-12-13 16:41:04 +0000 |
commit | 8fd0a81f51d1951408e55c9dcd331ddb13fe9cad (patch) | |
tree | a7cfc11e61d4abb441749cc331c0593077585d9b /sys | |
parent | 39a72e06bfca1f79c9a07d23d75fda9755f372e9 (diff) | |
download | FreeBSD-src-8fd0a81f51d1951408e55c9dcd331ddb13fe9cad.zip FreeBSD-src-8fd0a81f51d1951408e55c9dcd331ddb13fe9cad.tar.gz |
MFC r256638:
Add cases for the combinations of busdma sync op flags that we handle
correctly by doing nothing, then add a panic for the default case, because
that implies that some driver asked for a sync (probably incorrectly) and
nothing was done.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/arm/busdma_machdep-v6.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/arm/arm/busdma_machdep-v6.c b/sys/arm/arm/busdma_machdep-v6.c index 15329ac..31ebfe4 100644 --- a/sys/arm/arm/busdma_machdep-v6.c +++ b/sys/arm/arm/busdma_machdep-v6.c @@ -1282,7 +1282,12 @@ _bus_dmamap_sync(bus_dma_tag_t dmat, bus_dmamap_t map, bus_dmasync_op_t op) } break; + case BUS_DMASYNC_POSTREAD: + case BUS_DMASYNC_POSTWRITE: + case BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE: + break; default: + panic("unsupported combination of sync operations: 0x%08x\n", op); break; } } |