Author: ian
Date: Wed Oct 16 16:35:25 2013
New Revision: 256638
URL: http://svnweb.freebsd.org/changeset/base/256638

Log:
  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.

Modified:
  head/sys/arm/arm/busdma_machdep-v6.c

Modified: head/sys/arm/arm/busdma_machdep-v6.c
==============================================================================
--- head/sys/arm/arm/busdma_machdep-v6.c        Wed Oct 16 16:32:35 2013        
(r256637)
+++ head/sys/arm/arm/busdma_machdep-v6.c        Wed Oct 16 16:35:25 2013        
(r256638)
@@ -1282,7 +1282,12 @@ _bus_dmamap_sync(bus_dma_tag_t dmat, bus
                        }
                        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;
                }
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to