diff options
author | Mischa Jonker <mischa.jonker@synopsys.com> | 2013-07-26 14:08:14 +0200 |
---|---|---|
committer | Pantelis Antoniou <panto@antoniou-consulting.com> | 2013-09-20 18:59:11 +0300 |
commit | 2136d22630ef5acf36b90c45b6e44e964547b618 (patch) | |
tree | 900e73dfa0629d6a3f3739322c9ad3d32ddfe653 /include/mtd/cfi_flash.h | |
parent | da61fa5f42133593be51764b55a905330eae5063 (diff) | |
download | u-boot-imx-2136d22630ef5acf36b90c45b6e44e964547b618.zip u-boot-imx-2136d22630ef5acf36b90c45b6e44e964547b618.tar.gz u-boot-imx-2136d22630ef5acf36b90c45b6e44e964547b618.tar.bz2 |
mmc/dw_mmc: Fix DMA descriptor corruption
In dwmci_prepare_data, the descriptors are allocated for DMA transfer.
These are allocated using the ALLOC_CACHE_ALIGN_BUFFER. This macro uses
the stack to allocate these descriptors. This becomes a problem if the
DMA transfer continues after the processor leaves the function in which
the descriptors were allocated.
Therefore, I have moved the allocated of the buffers up one level, to
dwmci_send_cmd(). The DMA transfer should be complete when leaving this
function.
Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Andy Fleming <afleming@gmail.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'include/mtd/cfi_flash.h')
0 files changed, 0 insertions, 0 deletions