]> git.sur5r.net Git - u-boot/commit
mtd: nand: mxs invalidate dcache before DMA read
authorPeng Fan <Peng.Fan@freescale.com>
Tue, 21 Jul 2015 08:15:21 +0000 (16:15 +0800)
committerScott Wood <scottwood@freescale.com>
Wed, 26 Aug 2015 03:53:59 +0000 (22:53 -0500)
commitecfb8768b16ebf6781ee0df45742674bda8a9543
tree08ccaaa3bb470b0f6cc21c7b7f73d7e14cf82f9e
parent63b29d80823be9ce7763cadc115012d0fba69700
mtd: nand: mxs invalidate dcache before DMA read

Follow linux dma flow:
Before DMA read, be sure to invalidate the cache over the address
range of DMA buffer to prevent cache coherency problems.
After DMA read, invalidate dcache again.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Tim Harvey <tharvey@gateworks.com>
drivers/mtd/nand/mxs_nand.c