Date: Wed, 9 Oct 2019 16:57:14 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r353354 - head/sys/dev/mmc/host Message-ID: <201910091657.x99GvEe2086125@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910091657.x99GvEe2086125>