summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorFrode Isaksen2017-02-23 19:02:00 +0100
committerMark Brown2017-03-15 20:35:39 +0100
commit4dd9becbce4f10009322c3e2297f9db3ace94a10 (patch)
tree09a1f660b4fd532335aa44d8df4220fcb37f835b /firmware
parentspi: davinci: do not use DMA if transfer length is less than 16 (diff)
downloadkernel-qcow2-linux-4dd9becbce4f10009322c3e2297f9db3ace94a10.tar.gz
kernel-qcow2-linux-4dd9becbce4f10009322c3e2297f9db3ace94a10.tar.xz
kernel-qcow2-linux-4dd9becbce4f10009322c3e2297f9db3ace94a10.zip
spi: davinci: do not use DMA for vmalloc'ed buffers
Using vmalloc'ed buffers will fail since daVinci has VIVT cache and only the kernel lowmem virtual address is invalidated/flushed when performing DMA. The virtual address returned from vmalloc() is not invalidated/flushed and may contain stale data when returning from spi_sync(). Fixes errors when running UBIFS over SPI NOR. Revert this when all upper layer users of vmalloc'ed buffers sent to SPI handles cache flushing/invalidating. Signed-off-by: Frode Isaksen <fisaksen@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions