On Wed, 4 Mar 2015 13:33:22 +0800
yjin <yanjiang.jin@xxxxxxxxxxxxx> wrote:
On 2015å03æ04æ 03:31, Kim Phillips wrote:? rng_create_sh_desc() creates a fixed descriptor of exactly 4
On Tue, 3 Mar 2015 14:50:52 +0800Hi Kim,
<yanjiang.jin@xxxxxxxxxxxxx> wrote:
- dma_unmap_single(jrdev, ctx->sh_desc_dma, DESC_RNG_LEN,alignment: the 'd' in desc_bytes should fall directly under the 'j'
- DMA_TO_DEVICE);
+ dma_unmap_single(jrdev, ctx->sh_desc_dma,
+ desc_bytes(ctx->sh_desc), DMA_TO_DEVICE);
in jrdev.
Also, DESC_RNG_LEN should be corrected to (4 * CAAM_CMD_SZ).
I can't find the obvious limitation for the RNG descriptor length in
Freescale documents, could you point out it?
command-lengths.
Kim