svn commit: r353354 - head/sys/dev/mmc/host

Emmanuel Vadot manu at FreeBSD.org
Wed Oct 9 16:57:14 UTC 2019


Author: manu
Date: Wed Oct  9 16:57:14 2019
New Revision: 353354
URL: https://svnweb.freebsd.org/changeset/base/353354

Log:
  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.
  
  MFC after:	1 week

Modified:
  head/sys/dev/mmc/host/dwmmc.c

Modified: head/sys/dev/mmc/host/dwmmc.c
==============================================================================
--- head/sys/dev/mmc/host/dwmmc.c	Wed Oct  9 16:48:48 2019	(r353353)
+++ head/sys/dev/mmc/host/dwmmc.c	Wed Oct  9 16:57:14 2019	(r353354)
@@ -611,6 +611,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-head mailing list