]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sf: allocate cache aligned buffers to copy from flash
authorRavi Babu <ravibabu@ti.com>
Mon, 17 Aug 2015 07:59:48 +0000 (13:29 +0530)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:24:14 +0000 (10:24 +0200)
commit9e9ad03f089fd7a2c29229cf1e97e9b18acb6136
treeb285cce5b5d270da5d894b4f267d107b4bd14947
parentc4a018de981a5058ae73b188171c5850569ff5e8
sf: allocate cache aligned buffers to copy from flash

Use memalign() with ARCH_DMA_MINALIGN to allocate read buffers.
This is required because, flash drivers may use DMA for read operations
and may have to invalidate the buffer before read.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Tested-by: Jagan Teki <jteki@openedev.com>
common/cmd_sf.c