]> Git Repo - J-u-boot.git/commit - cmd/sf.c
sf: allocate cache aligned buffers to copy from flash
authorRavi Babu <[email protected]>
Mon, 17 Aug 2015 07:59:48 +0000 (13:29 +0530)
committerJagan Teki <[email protected]>
Mon, 17 Aug 2015 17:59:14 +0000 (23:29 +0530)
commit156e96f0382a09e3b67681566319ec945f192eb9
tree988befa0534412ca17cde3bbeee17cf963130c48
parenta39cfe717c4152ececea5c4ce0aa2e97faa263ab
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 <[email protected]>
Signed-off-by: Vignesh R <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
Tested-by: Jagan Teki <[email protected]>
common/cmd_sf.c
This page took 0.033502 seconds and 4 git commands to generate.