|
@@ -52,7 +52,7 @@
|
|
|
|
|
|
/* length of descriptors */
|
|
/* length of descriptors */
|
|
#define DESC_JOB_O_LEN (CAAM_CMD_SZ * 2 + CAAM_PTR_SZ * 2)
|
|
#define DESC_JOB_O_LEN (CAAM_CMD_SZ * 2 + CAAM_PTR_SZ * 2)
|
|
-#define DESC_RNG_LEN (4 * CAAM_CMD_SZ)
|
|
|
|
|
|
+#define DESC_RNG_LEN (3 * CAAM_CMD_SZ)
|
|
|
|
|
|
/* Buffer, its dma address and lock */
|
|
/* Buffer, its dma address and lock */
|
|
struct buf_data {
|
|
struct buf_data {
|
|
@@ -196,9 +196,6 @@ static inline int rng_create_sh_desc(struct caam_rng_ctx *ctx)
|
|
|
|
|
|
init_sh_desc(desc, HDR_SHARE_SERIAL);
|
|
init_sh_desc(desc, HDR_SHARE_SERIAL);
|
|
|
|
|
|
- /* Propagate errors from shared to job descriptor */
|
|
|
|
- append_cmd(desc, SET_OK_NO_PROP_ERRORS | CMD_LOAD);
|
|
|
|
-
|
|
|
|
/* Generate random bytes */
|
|
/* Generate random bytes */
|
|
append_operation(desc, OP_ALG_ALGSEL_RNG | OP_TYPE_CLASS1_ALG);
|
|
append_operation(desc, OP_ALG_ALGSEL_RNG | OP_TYPE_CLASS1_ALG);
|
|
|
|
|