From 031470058ad9594b8560d5a4b017a3ebfcffff42 Mon Sep 17 00:00:00 2001 From: Lin Jinhan Date: Mon, 5 Jul 2021 11:03:33 +0800 Subject: [PATCH] crypto: rockchip: change hardware crypto driver's priority Decrease RK_CRYPTO_PRIORITY from 300 to 0.Hardware driver will only invoked by user layer through the driver name. Change-Id: Ifeda13a2b9ce6fec6be60a2422b7507f91eedbb5 Signed-off-by: Lin Jinhan --- drivers/crypto/rockchip/rk_crypto_core.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/rockchip/rk_crypto_core.h b/drivers/crypto/rockchip/rk_crypto_core.h index d9641afdd0a1..6ced3880b9e6 100644 --- a/drivers/crypto/rockchip/rk_crypto_core.h +++ b/drivers/crypto/rockchip/rk_crypto_core.h @@ -29,7 +29,11 @@ #include "rk_crypto_bignum.h" -#define RK_CRYPTO_PRIORITY 300 +/* + * Change to the lowest priority, and hardware encryption is + * invoked explicitly only at the User layer. + */ +#define RK_CRYPTO_PRIORITY 0 /* Increase the addr_vir buffer size from 1 to 8 pages */ #define RK_BUFFER_ORDER 3