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
This commit is contained in:
Emmanuel Vadot 2019-10-09 16:57:14 +00:00
parent 24be13533b
commit e3014a572e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353354

View File

@ -611,6 +611,7 @@ dwmmc_attach(device_t dev)
}
if (!sc->use_pio) {
dma_stop(sc);
if (dma_setup(sc))
return (ENXIO);