diff options
author | Michal Simek <monstr@monstr.eu> | 2010-04-29 13:02:17 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-05-06 11:22:00 +0200 |
commit | 385e1efafc73a5deeb20645ae8b227b4896852e2 (patch) | |
tree | fed53648bfa6387fcfb4da0e9241ae06b06cd0a7 /arch/microblaze/mm/consistent.c | |
parent | 598acab44dcbda0e300d9d080e81566334138e7d (diff) | |
download | blackbird-obmc-linux-385e1efafc73a5deeb20645ae8b227b4896852e2.tar.gz blackbird-obmc-linux-385e1efafc73a5deeb20645ae8b227b4896852e2.zip |
microblaze: Fix consistent-sync code
PCI_DMA_FROMDEVICE should call invalidation not flushing.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/mm/consistent.c')
-rw-r--r-- | arch/microblaze/mm/consistent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/mm/consistent.c b/arch/microblaze/mm/consistent.c index 713431caf592..5a59dad62bd2 100644 --- a/arch/microblaze/mm/consistent.c +++ b/arch/microblaze/mm/consistent.c @@ -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); |