Skip to content

Commit cc19be8

Browse files
committed
Revert dma cache changes
1 parent c113c1b commit cc19be8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

targets/ChibiOS/_FatFS/fatfs_diskio.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ DRESULT disk_read(
108108
return RES_ERROR;
109109
}
110110
// invalidate cache over read buffer to ensure that content from DMA is read
111-
// cacheBufferInvalidate(buff, MMCSD_BLOCK_SIZE * count);
112-
dmaCacheInvalidate(buff, MMCSD_BLOCK_SIZE * count);
111+
cacheBufferInvalidate(buff, MMCSD_BLOCK_SIZE * count);
113112
return RES_OK;
114113
}
115114
return RES_PARERR;
@@ -138,8 +137,7 @@ DRESULT disk_write(
138137
return RES_ERROR;
139138
}
140139
// invalidate cache on buffer
141-
// cacheBufferFlush(buff, count);
142-
dmaBufferFlush(buff, count);
140+
cacheBufferFlush(buff, count);
143141
return RES_OK;
144142
}
145143
return RES_PARERR;

0 commit comments

Comments
 (0)