socsvn commit: r287381 - soc2015/pratiksinghal/cubie-head/sys/arm/allwinner

pratiksinghal at FreeBSD.org pratiksinghal at FreeBSD.org
Sat Jun 20 13:06:39 UTC 2015


Author: pratiksinghal
Date: Sat Jun 20 13:06:37 2015
New Revision: 287381
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=287381

Log:
  Fixed errors in previous commit

Modified:
  soc2015/pratiksinghal/cubie-head/sys/arm/allwinner/a10_mmc.c

Modified: soc2015/pratiksinghal/cubie-head/sys/arm/allwinner/a10_mmc.c
==============================================================================
--- soc2015/pratiksinghal/cubie-head/sys/arm/allwinner/a10_mmc.c	Sat Jun 20 12:43:54 2015	(r287380)
+++ soc2015/pratiksinghal/cubie-head/sys/arm/allwinner/a10_mmc.c	Sat Jun 20 13:06:37 2015	(r287381)
@@ -295,7 +295,7 @@
 	rem = min(len,cmd->data->len) ;
 	uint32_t error = bus_dmamap_load(sc->a10_dma_buff_tag, sc->a10_dma_buff_map,
 					cmd->data->data,rem,a10_dma_buff_cb,
-					&sc->a10_dma_nsegs,0) ;
+					sc,0) ;
 	if (error == EINPROGRESS) {
 		for( ; sc->a10_dma_nsegs == 0 ; )  { }
 	}
@@ -394,7 +394,8 @@
 		return  ;
 	}
 	int i ; 
-	*(uint32_t*)arg = nsegs ; 
+	struct a10_mmc_softc* sc = (struct a10_mmc_softc*) arg ; 
+	sc->a10_dma_nsegs = nsegs ; 
 	for(i=0; i<nsegs; i++) { 
 		sc->a10_dma_buff_addrs[i] = segs[i].ds_addr ; 
 		sc->a10_dma_buff_sizes[i] = segs[i].ds_len ; 


More information about the svn-soc-all mailing list