aw_mmc: Read interrupt register value before writing to it
Reported by: jmcneill
This commit is contained in:
parent
bc89214039
commit
a37d59c145
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user