Date: Sat, 12 May 2018 13:12:26 +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: r333553 - head/sys/arm/allwinner Message-ID: <201805121312.w4CDCQPI059266@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Sat May 12 13:12:26 2018 New Revision: 333553 URL: https://svnweb.freebsd.org/changeset/base/333553 Log: aw_mmc: Read interrupt register value before writing to it Reported by: jmcneill Modified: head/sys/arm/allwinner/aw_mmc.c Modified: head/sys/arm/allwinner/aw_mmc.c ============================================================================== --- head/sys/arm/allwinner/aw_mmc.c Sat May 12 12:57:34 2018 (r333552) +++ head/sys/arm/allwinner/aw_mmc.c Sat May 12 13:12:26 2018 (r333553) @@ -450,6 +450,7 @@ aw_mmc_prepare_dma(struct aw_mmc_softc *sc) AW_MMC_DMAC_IDMAC_IDMA_ON | AW_MMC_DMAC_IDMAC_FIX_BURST); /* Enable RX or TX DMA interrupt */ + val = AW_MMC_READ_4(sc, AW_MMC_IDIE); if (cmd->data->flags & MMC_DATA_WRITE) val |= AW_MMC_IDST_TX_INT; else
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805121312.w4CDCQPI059266>