linux-stable/drivers/crypto
Steffen Trumtrar f657f82cc9 crypto: caam - fix non-64-bit write/read access
The patch

	crypto: caam - Add definition of rd/wr_reg64 for little endian platform

added support for little endian platforms to the CAAM driver. Namely a
write and read function for 64 bit registers.
The only user of this functions is the Job Ring driver (drivers/crypto/caam/jr.c).
It uses the functions to set the DMA addresses for the input/output rings.
However, at least in the default configuration, the least significant 32 bits are
always in the base+0x0004 address; independent of the endianness of the bytes itself.
That means the addresses do not change with the system endianness.

DMA addresses are only 32 bits wide on non-64-bit systems, writing the upper 32 bits
of this value to the register for the least significant bits results in the DMA address
being set to 0.

Fix this by always writing the registers in the same way.

Suggested-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2015-06-18 14:45:28 +08:00
..
amcc crypto: amcc - remove incorrect __init/__exit markups 2015-03-12 01:11:07 +11:00
caam crypto: caam - fix non-64-bit write/read access 2015-06-18 14:45:28 +08:00
ccp crypto: ccp - Protect against poorly marked end of sg list 2015-06-03 10:51:28 +08:00
nx crypto: nx - Convert GCM to new AEAD interface 2015-06-17 15:35:07 +08:00
qat crypto: qat: fix issue when mapping assoc to internal AD struct 2015-06-09 22:22:06 +08:00
qce crypto: replace scatterwalk_sg_next with sg_next 2015-01-26 11:34:22 +11:00
ux500 crypto: ux500 - Update error message for dmaengine_prep_slave_sg() API 2015-03-06 22:51:28 +11:00
vmx crypto: vmx - Reindent to kernel style 2015-06-16 14:35:02 +08:00
atmel-aes-regs.h
atmel-aes.c crypto: atmel-aes - correct usage of dma_sync_* API 2015-04-08 22:20:05 +08:00
atmel-sha-regs.h
atmel-sha.c crypto: atmel-sha - correct the max burst size 2015-04-08 22:20:03 +08:00
atmel-tdes-regs.h
atmel-tdes.c crypto: atmel-tdes - initialize spinlock in probe 2015-04-08 22:20:03 +08:00
bfin_crc.c crypto: replace scatterwalk_sg_next with sg_next 2015-01-26 11:34:22 +11:00
bfin_crc.h crypto: bfin_crc - access crc registers by readl and writel functions 2014-04-16 20:40:15 +08:00
geode-aes.c crypto: geode - Don't use tfm->__crt_alg->cra_name directly 2014-05-22 21:03:13 +08:00
geode-aes.h crypto: geode - Consistently use AES_KEYSIZE_128 2014-05-22 21:03:12 +08:00
hifn_795x.c crypto: use pci_zalloc_consistent 2014-08-08 15:57:28 -07:00
img-hash.c crypto: img-hash - shift wrapping bug in img_hash_hw_init() 2015-03-23 22:06:50 +11:00
ixp4xx_crypto.c crypto: ixp4xx - Use crypto_aead_maxauthsize 2015-05-22 11:25:53 +08:00
Kconfig crypto: vmx - Remove duplicate PPC64 dependency 2015-06-16 14:35:01 +08:00
Makefile crypto: img-hash - Add Imagination Technologies hw hash accelerator 2015-03-16 21:46:24 +11:00
mv_cesa.c crypto: mv_cesa - request registers memory region 2015-05-25 18:41:27 +08:00
mv_cesa.h crypto: mv_cesa - Add missing #define 2014-08-29 21:46:36 +08:00
mxs-dcp.c crypto: mxs-dcp - fix type of ret for wait_for_completion_timeout 2015-02-28 23:31:36 +13:00
n2_asm.S
n2_core.c crypto: n2 - use md5 IV MD5_HX instead of their raw value 2015-05-18 12:20:20 +08:00
n2_core.h
omap-aes.c crypto: omap-aes - Fix support for unequal lengths 2015-04-01 22:22:43 +08:00
omap-des.c crypto: replace scatterwalk_sg_next with sg_next 2015-01-26 11:34:22 +11:00
omap-sham.c crypto: omap-sham - Add support for omap3 devices 2015-05-18 12:29:22 +08:00
padlock-aes.c crypto: prefix module autoloading with "crypto-" 2014-11-24 22:43:57 +08:00
padlock-sha.c crypto: prefix module autoloading with "crypto-" 2014-11-24 22:43:57 +08:00
picoxcell_crypto.c crypto: picoxcell - Clamp AEAD SG list by input length 2015-06-12 22:45:09 +08:00
picoxcell_crypto_regs.h
s5p-sss.c crypto: drop owner assignment from platform_drivers 2014-10-20 16:20:25 +02:00
sahara.c crypto: sahara - fix AES descriptor create 2015-04-08 22:20:06 +08:00
talitos.c crypto: talitos - static code checker fixes 2015-05-13 10:31:57 +08:00
talitos.h crypto: talitos - implement scatter/gather copy for SEC1 2015-04-21 09:14:42 +08:00