Date: Thu, 28 Nov 2019 18:18:11 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r355181 - stable/12/sys/dev/mmc/host Message-ID: <201911281818.xASIIB69086492@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911281818.xASIIB69086492>