Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 385e1efa authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: Fix consistent-sync code



PCI_DMA_FROMDEVICE should call invalidation not flushing.

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 598acab4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ void consistent_sync(void *vaddr, size_t size, int direction)
	case PCI_DMA_NONE:
		BUG();
	case PCI_DMA_FROMDEVICE:	/* invalidate only */
		flush_dcache_range(start, end);
		invalidate_dcache_range(start, end);
		break;
	case PCI_DMA_TODEVICE:		/* writeback only */
		flush_dcache_range(start, end);