• Herbert Xu's avatar
    crypto: marvell/cesa - Fix use of sg_pcopy on iomem pointer · c114cf7f
    Herbert Xu authored
    The cesa driver mixes use of iomem pointers and normal kernel
    pointers.  Sometimes it uses memcpy_toio/memcpy_fromio on both
    while other times it would use straight memcpy on both, through
    the sg_pcopy_* helpers.
    
    This patch fixes this by adding a new field sram_pool to the engine
    for the normal pointer case which then allows us to use the right
    interface depending on the value of engine->pool.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    c114cf7f
tdma.c 9.92 KB