Use devm_reset_control_get_shared to share a reset signal otherwise TRNG
and crypto will not work at the same time.
Signed-off-by: samin.guo <samin.guo@starfivetech.com>
return ret;
}
- rng->rst = devm_reset_control_get_exclusive(&pdev->dev, NULL);
+ rng->rst = devm_reset_control_get_shared(&pdev->dev, NULL);
if (IS_ERR(rng->rst)) {
ret = PTR_ERR(rng->rst);
dev_err(&pdev->dev,
return PTR_ERR(sdev->sec_ahb);
}
- sdev->rst_hresetn = devm_reset_control_get_exclusive(sdev->dev, "sec_hre");
+ sdev->rst_hresetn = devm_reset_control_get_shared(sdev->dev, "sec_hre");
if (IS_ERR(sdev->rst_hresetn)) {
dev_err(sdev->dev, "failed to get sec reset\n");
return PTR_ERR(sdev->rst_hresetn);