mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
25 lines
910 B
Diff
25 lines
910 B
Diff
From 5a73176384bd62a9ac4300805d243592e93fe5d4 Mon Sep 17 00:00:00 2001
|
|
From: Corentin Labbe <clabbe@baylibre.com>
|
|
Date: Tue, 27 Sep 2022 07:55:10 +0000
|
|
Subject: [PATCH 48/49] crypto: rockchip: permit to have more than one reset
|
|
|
|
The RK3399 has 3 resets, so the driver to handle multiple resets.
|
|
This is done by using devm_reset_control_array_get_exclusive().
|
|
|
|
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
|
|
---
|
|
drivers/crypto/rockchip/rk3288_crypto.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/crypto/rockchip/rk3288_crypto.c
|
|
+++ b/drivers/crypto/rockchip/rk3288_crypto.c
|
|
@@ -281,7 +281,7 @@ static int rk_crypto_probe(struct platfo
|
|
return -EINVAL;
|
|
}
|
|
|
|
- crypto_info->rst = devm_reset_control_get(dev, "crypto-rst");
|
|
+ crypto_info->rst = devm_reset_control_array_get_exclusive(dev);
|
|
if (IS_ERR(crypto_info->rst)) {
|
|
err = PTR_ERR(crypto_info->rst);
|
|
goto err_crypto;
|