svn commit: r355181 - stable/12/sys/dev/mmc/host

Emmanuel Vadot manu at FreeBSD.org
Thu Nov 28 18:18:11 UTC 2019


Author: manu
Date: Thu Nov 28 18:18:10 2019
New Revision: 355181
URL: https://svnweb.freebsd.org/changeset/base/355181

Log:
  MFC r353354:
  
  dwmmc: Reset the dma controller at attach
  
  If the bootloader enabled DMA we need to fully reset the DMA controller
  otherwise we might have some stale data in it that provoke weird
  behavior.

Modified:
  stable/12/sys/dev/mmc/host/dwmmc.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/mmc/host/dwmmc.c
==============================================================================
--- stable/12/sys/dev/mmc/host/dwmmc.c	Thu Nov 28 18:15:05 2019	(r355180)
+++ stable/12/sys/dev/mmc/host/dwmmc.c	Thu Nov 28 18:18:10 2019	(r355181)
@@ -559,6 +559,7 @@ dwmmc_attach(device_t dev)
 	}
 
 	if (!sc->use_pio) {
+		dma_stop(sc);
 		if (dma_setup(sc))
 			return (ENXIO);
 


More information about the svn-src-all mailing list