diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-10-18 20:31:05 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-10-20 17:13:56 +0300 |
commit | 5d754137ab905aaaf69acf81c9c6c7005bcfe6e4 (patch) | |
tree | 9e86c316d9960eca4350a1f4a2904494fc3255eb /drivers/crypto/marvell/cesa.h | |
parent | b150856152cc442050ed3041e912ff0258c50f87 (diff) | |
download | linux-5d754137ab905aaaf69acf81c9c6c7005bcfe6e4.tar.xz |
crypto: marvell/cesa - use dma_addr_t for cur_dma
cur_dma is part of the software state, not read by the hardware.
Storing it in LE32 format is wrong, use dma_addr_t for this.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/marvell/cesa.h')
-rw-r--r-- | drivers/crypto/marvell/cesa.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/crypto/marvell/cesa.h b/drivers/crypto/marvell/cesa.h index 8b5c0477edba..d1edf01609df 100644 --- a/drivers/crypto/marvell/cesa.h +++ b/drivers/crypto/marvell/cesa.h @@ -297,7 +297,9 @@ struct mv_cesa_tdma_desc { u32 src; u32 dst; u32 next_dma; - u32 cur_dma; + + /* Software state */ + dma_addr_t cur_dma; struct mv_cesa_tdma_desc *next; union { struct mv_cesa_op_ctx *op; |