]> bbs.cooldavid.org Git - net-next-2.6.git/commit
Blackfin: fix DMA/cache bug when resuming from suspend to RAM
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 16 Jun 2010 09:12:10 +0000 (09:12 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 6 Aug 2010 16:55:50 +0000 (12:55 -0400)
commitd1401e1dc22606a91f577ad3dfd68ae7e60e0357
tree6c59463c60fd4ada2b5d4974afaa30be7059c67f
parent502c8a0e07450ff886b80a11150a123bae92f3f7
Blackfin: fix DMA/cache bug when resuming from suspend to RAM

The dma_memcpy() function takes care of flushing different caches for us.
Normally this is what we want, but when resuming from mem, we don't yet
have caches enabled.  If these functions happen to be placed into L1 mem
(which is what we're trying to relocate), then things aren't going to
work.  So define a non-cache dma_memcpy() variant to utilize in situations
like this.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/dma.h
arch/blackfin/kernel/bfin_dma_5xx.c
arch/blackfin/mach-common/pm.c