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:
parent
24be13533b
commit
e3014a572e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353354
@ -611,6 +611,7 @@ dwmmc_attach(device_t dev)
|
||||
}
|
||||
|
||||
if (!sc->use_pio) {
|
||||
dma_stop(sc);
|
||||
if (dma_setup(sc))
|
||||
return (ENXIO);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user