linux/drivers/crypto/caam
Ruchika Gupta 1da2be33ad crypto: caam - Correct the dma mapping for sg table
At few places in caamhash and caamalg, after allocating a dmable
buffer for sg table , the buffer was being modified.  As per
definition of DMA_FROM_DEVICE ,afer allocation the memory should
be treated as read-only by the driver. This patch shifts the
allocation of dmable buffer for sg table after it is populated
by the  driver, making it read-only as per the DMA API's requirement.

Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2014-06-25 21:38:41 +08:00
..
Kconfig crypto: caam - Add Platform driver for Job Ring 2013-10-30 12:02:57 +08:00
Makefile crypto: caam - Add Platform driver for Job Ring 2013-10-30 12:02:57 +08:00
caamalg.c crypto: caam - Correct the dma mapping for sg table 2014-06-25 21:38:41 +08:00
caamhash.c crypto: caam - Correct the dma mapping for sg table 2014-06-25 21:38:41 +08:00
caamrng.c crypto: caam - Contain caam_jr_strstatus() ugliness 2014-05-08 21:58:06 +08:00
compat.h crypto: caam - add support for aead null encryption 2014-03-21 21:54:27 +08:00
ctrl.c crypto: caam - Configuration for platforms with virtualization enabled in CAAM 2014-06-25 21:38:39 +08:00
ctrl.h crypto: caam - fix ERA retrieval function 2014-02-09 09:59:27 +08:00
desc.h crypto: caam - remove duplicate FIFOST_CONT_MASK define 2014-06-20 21:27:57 +08:00
desc_constr.h crypto: caam - add support for aead null encryption 2014-03-21 21:54:27 +08:00
error.c crypto: caam - Fix the 'quoted string split across lines' 2014-05-08 21:58:11 +08:00
error.h crypto: caam - Contain caam_jr_strstatus() ugliness 2014-05-08 21:58:06 +08:00
intern.h crypto: caam - Configuration for platforms with virtualization enabled in CAAM 2014-06-25 21:38:39 +08:00
jr.c crypto: caam - Add missing Job Ring include 2013-11-26 20:59:27 +08:00
jr.h crypto: caam - Add API's to allocate/free Job Rings 2013-10-30 12:02:57 +08:00
key_gen.c crypto: caam - Contain caam_jr_strstatus() ugliness 2014-05-08 21:58:06 +08:00
key_gen.h crypto: caam - change key gen functions to return signed int 2013-04-25 21:01:43 +08:00
pdb.h crypto: caam - Add define for Adjust Output Frame Length in PDB 2013-05-28 15:37:08 +08:00
regs.h crypto: caam - Add definition of rd/wr_reg64 for little endian platform 2014-06-25 21:38:40 +08:00
sg_sw_sec4.h crypto: caam - map src buffer before access 2013-09-24 06:02:20 +10:00