Author: ian
Date: Fri Dec 13 16:41:04 2013
New Revision: 259310
URL: http://svnweb.freebsd.org/changeset/base/259310

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

Modified:
  stable/10/sys/arm/arm/busdma_machdep-v6.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/arm/arm/busdma_machdep-v6.c
==============================================================================
--- stable/10/sys/arm/arm/busdma_machdep-v6.c   Fri Dec 13 16:38:21 2013        
(r259309)
+++ stable/10/sys/arm/arm/busdma_machdep-v6.c   Fri Dec 13 16:41:04 2013        
(r259310)
@@ -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-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to