Skip to content

Commit

Permalink
crypto: sun8i-ss - Add SS_START define
Browse files Browse the repository at this point in the history
Instead of using an hardcoded value, let's use a defined value for
SS_START.

Signed-off-by: Corentin Labbe <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
montjoie authored and herbertx committed Sep 25, 2020
1 parent 106aaab commit f1455b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f1455b1

Please sign in to comment.