OSDN Git Service

crypto: sun8i-ss - Add SS_START define
authorCorentin Labbe <clabbe@baylibre.com>
Fri, 18 Sep 2020 07:22:59 +0000 (07:22 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Sep 2020 07:48:16 +0000 (17:48 +1000)
Instead of using an hardcoded value, let's use a defined value for
SS_START.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h

index 1a8d7cd..adcae3a 100644 (file)
@@ -61,7 +61,7 @@ int sun8i_ss_run_task(struct sun8i_ss_dev *ss, struct sun8i_cipher_req_ctx *rctx
                      const char *name)
 {
        int flow = rctx->flow;
-       u32 v = 1;
+       u32 v = SS_START;
        int i;
 
 #ifdef CONFIG_CRYPTO_DEV_SUN8I_SS_DEBUG
index 0405767..f3ffaea 100644 (file)
@@ -13,6 +13,8 @@
 #include <linux/debugfs.h>
 #include <linux/crypto.h>
 
+#define SS_START       1
+
 #define SS_ENCRYPTION          0
 #define SS_DECRYPTION          BIT(6)