OSDN Git Service

crypto: rockchip - permit to have more than one reset
authorCorentin Labbe <clabbe@baylibre.com>
Tue, 27 Sep 2022 07:55:10 +0000 (07:55 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Oct 2022 04:36:34 +0000 (12:36 +0800)
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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/rockchip/rk3288_crypto.c

index 232dc62..d96f375 100644 (file)
@@ -281,7 +281,7 @@ static int rk_crypto_probe(struct platform_device *pdev)
                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;