From 37cf697fb1b221cacafff9ec48c59e79f80d482b Mon Sep 17 00:00:00 2001 From: Akhil R Date: Tue, 8 Aug 2023 17:24:48 +0530 Subject: [PATCH] crypto: tegra: Init keyslot for SHA as well Inititalize keyslot for SHA algorithms as well since SHA-HMAC uses the same keyslots. Also reduce the log level of some prints. The scenario does not have any functional impact that the user need to be notified. Bug 4221414 Signed-off-by: Akhil R Change-Id: I73449144ce56aaf35fae52aa1c4c5b0bb8c01d9c Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2952640 Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit --- drivers/crypto/tegra-se-nvhost.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/tegra-se-nvhost.c b/drivers/crypto/tegra-se-nvhost.c index f0cfa052..9bebb633 100644 --- a/drivers/crypto/tegra-se-nvhost.c +++ b/drivers/crypto/tegra-se-nvhost.c @@ -1370,7 +1370,7 @@ static int tegra_se_channel_submit_gather(struct tegra_se_dev *se_dev, se_dev->pdev, syncpt_id, job->syncpt_end, tegra_se_aes_complete_callback, priv); if (err) { - dev_warn(se_dev->dev, + dev_dbg(se_dev->dev, "add nvhost interrupt action failed (%d) for AES\n", err); tegra_se_aes_complete_callback(priv, 0); err = 0; @@ -1391,7 +1391,7 @@ static int tegra_se_channel_submit_gather(struct tegra_se_dev *se_dev, se_dev->pdev, syncpt_id, job->syncpt_end, tegra_se_sha_complete_callback, priv); if (err) { - dev_warn(se_dev->dev, + dev_dbg(se_dev->dev, "add nvhost interrupt action failed for SHA\n"); tegra_se_sha_complete_callback(priv, 0); err = 0; @@ -7441,7 +7441,8 @@ static int tegra_se_probe(struct platform_device *pdev) tegra_se_fill_se_dev_info(se_dev); - if (is_algo_supported(node, "aes") || is_algo_supported(node, "drbg")) { + if (is_algo_supported(node, "aes") || is_algo_supported(node, "drbg") + || is_algo_supported(node, "sha")) { err = tegra_init_key_slot(se_dev); if (err) { dev_err(se_dev->dev, "init_key_slot failed\n");