summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/ata-imx31.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/ata-imx31.c')
-rw-r--r--firmware/target/arm/imx31/ata-imx31.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/imx31/ata-imx31.c b/firmware/target/arm/imx31/ata-imx31.c
index 80539b9c9d..3b08a38c1b 100644
--- a/firmware/target/arm/imx31/ata-imx31.c
+++ b/firmware/target/arm/imx31/ata-imx31.c
@@ -475,7 +475,7 @@ bool ata_dma_setup(void *addr, unsigned long bytes, bool write)
475 if (LIKELY(buf != addr)) 475 if (LIKELY(buf != addr))
476 { 476 {
477 /* addr is virtual */ 477 /* addr is virtual */
478 clean_dcache_range(addr, bytes); 478 commit_dcache_range(addr, bytes);
479 } 479 }
480 480
481 /* Setup ATA controller for DMA transmit */ 481 /* Setup ATA controller for DMA transmit */
@@ -495,7 +495,7 @@ bool ata_dma_setup(void *addr, unsigned long bytes, bool write)
495 if (LIKELY(buf != addr)) 495 if (LIKELY(buf != addr))
496 { 496 {
497 /* addr is virtual */ 497 /* addr is virtual */
498 dump_dcache_range(addr, bytes); 498 discard_dcache_range(addr, bytes);
499 499
500 if ((unsigned long)addr & 31) 500 if ((unsigned long)addr & 31)
501 { 501 {