summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2013-12-13 16:41:04 +0000
committerian <ian@FreeBSD.org>2013-12-13 16:41:04 +0000
commit8fd0a81f51d1951408e55c9dcd331ddb13fe9cad (patch)
treea7cfc11e61d4abb441749cc331c0593077585d9b /sys/arm
parent39a72e06bfca1f79c9a07d23d75fda9755f372e9 (diff)
downloadFreeBSD-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/arm')
-rw-r--r--sys/arm/arm/busdma_machdep-v6.c5
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;
}
}
OpenPOWER on IntegriCloud