From patchwork Sun Oct 20 19:25:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ovidiu Panait X-Patchwork-Id: 13843238 X-Patchwork-Delegate: herbert@gondor.apana.org.au Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89286197A6C; Sun, 20 Oct 2024 19:25:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729452351; cv=none; b=b9dxzLiA3CBxc67HwddgMsTNirbXo1JVBWgmvaR0cCs5aYt7lP/Zz+erih//bmSdvXl4asoFLGBcFYdy3DqR27Cm0ogJILnO8T2dndvjPxuxTSKGS6NZQUMWtnk2yXnHotguZNVYLYA9ECGTwiHr4ZeVAYcuOcKMVPzDTARPzho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729452351; c=relaxed/simple; bh=eTrWZfj3b1SV9DAWDUfBG8mJCGcSqYAFT7ITaERAMtw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SK7TreoGPgkC/fbb4KgAWr/p1m93I6QvSYMWuTmSU6sS0aykWvL6hxWTSyToj+QdMaIIiSsoIFyidKOm99WS4Zg5nKiwW2+oiaRD5fMiax6E5j3pVQOT9iWh8YgBfVsbla9XrjvZnZmnFYUrfRcwjwAzO/GQAqaz5TbSieblzM4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mFm8vy0Y; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mFm8vy0Y" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5c9c28c1ecbso4659103a12.0; Sun, 20 Oct 2024 12:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729452348; x=1730057148; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Fa82SFshV6nEwAVMBdimXeinCih4JEM3G6NXQJF+Z+A=; b=mFm8vy0YcvjId4mNZQux1MNPmF6vT2vSTGbj9dE/go+RsTa9VkmwXLBQXpYrsCb7vB R29Id+LhDu1kc3XCUDp5L3Dlm698+SGc7sL19jopZZLabx3DkuitPeX7Y5rOma2hGZaF 5Z/rPSz9io6CdZ+ADJNxKeLxkTRlpeIC8QHbX1T2GU7SzQC2EJgUiNmXcHy7M1EJo+35 bEIBSrMGGtLQC2QTY/XrS15uafq0Y0W7bg2t6xEW+tUXFD12g+Rgo8kn2SNKyMEQVbqq Hzyg5yldutsMJFqUnh+dhCQ7nFtwM8X6TUHFX93iK2Q5RvxPlika00aulZR5aBis1UFc RAOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729452348; x=1730057148; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Fa82SFshV6nEwAVMBdimXeinCih4JEM3G6NXQJF+Z+A=; b=cHF/J5LJZFXJXPWyc988GiziC0cI258NtqrH3z9bs+WGkA/0CWosOpy+yMMsAVbeH3 SPaP9IIJQJywElo2T5kWl6AHKZUczSfj13JV6i2koDV2c9pVNhyF7LRUO+acQbhSKyR8 fQxq1UEhm3/RNqalICcyux70ZPQjlQOgiEoel4UUydprmBTCYXzDyBfqUIca9Yo+tMf8 nc7dl0IQGCxxjwgYdxldqn1blHpDFXeRFaXkbv2nnAbCI0bESA/Mlf6j3tS8487IC+FO cN6q8S0XQqRdKfe9OI3H3/edW8znnq5hVNewayvsR2C2k8erys8Q0cj/38xRcZ4yCgSA VqOw== X-Forwarded-Encrypted: i=1; AJvYcCU5iDPJf57NsUJWB+mDiUMzw46JzAHdF18CKZqNmjFCy171OE+/4LtdhvniRuMiUEEiJrAPIUQEFwVnow==@vger.kernel.org X-Gm-Message-State: AOJu0YwWM4XRu6gCu2TYqCSt6Hdxk5w7jCz74AJNRyt6Val+20vB6VZh wkkj/E6QalCkHRhKENjcu+6VclizmOvBgl6ZpipDnkNyPXzPR9oHxRpGdPUY X-Google-Smtp-Source: AGHT+IFLPB1z9G26SqagG7Lh3/KIYmfKr6AU0oKoTjb+qwUIyo1gYVk/ntSeTAE/ZLpn7bY+JzUVxw== X-Received: by 2002:a17:907:7f15:b0:a99:43e5:ac37 with SMTP id a640c23a62f3a-a9a69a73b51mr928910166b.15.1729452347520; Sun, 20 Oct 2024 12:25:47 -0700 (PDT) Received: from localhost.localdomain ([2a02:2f0e:c501:f600:f753:f6c2:4f3a:5d50]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a915599dasm117957366b.118.2024.10.20.12.25.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2024 12:25:47 -0700 (PDT) From: Ovidiu Panait To: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, Ovidiu Panait , Akhil R , Thierry Reding , Jonathan Hunter , linux-tegra@vger.kernel.org Subject: [PATCH 1/2] crypto: tegra - remove unneeded crypto_engine_stop() call Date: Sun, 20 Oct 2024 22:25:31 +0300 Message-Id: <20241020192532.4008-1-ovidiu.panait.oss@gmail.com> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The explicit crypto_engine_stop() call is not needed, as it is already called internally by crypto_engine_exit(). Signed-off-by: Ovidiu Panait Acked-by: Thierry Reding --- Cc: Akhil R Cc: Thierry Reding Cc: Jonathan Hunter Cc: linux-tegra@vger.kernel.org drivers/crypto/tegra/tegra-se-main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/tegra/tegra-se-main.c b/drivers/crypto/tegra/tegra-se-main.c index f94c0331b148..af11a0b5194d 100644 --- a/drivers/crypto/tegra/tegra-se-main.c +++ b/drivers/crypto/tegra/tegra-se-main.c @@ -312,7 +312,6 @@ static int tegra_se_probe(struct platform_device *pdev) ret = tegra_se_host1x_register(se); if (ret) { - crypto_engine_stop(se->engine); crypto_engine_exit(se->engine); return dev_err_probe(dev, ret, "failed to init host1x params\n"); } @@ -324,7 +323,6 @@ static void tegra_se_remove(struct platform_device *pdev) { struct tegra_se *se = platform_get_drvdata(pdev); - crypto_engine_stop(se->engine); crypto_engine_exit(se->engine); host1x_client_unregister(&se->client); } From patchwork Sun Oct 20 19:25:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ovidiu Panait X-Patchwork-Id: 13843239 X-Patchwork-Delegate: herbert@gondor.apana.org.au Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B37C8197A7E; Sun, 20 Oct 2024 19:25:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729452353; cv=none; b=Pz4G48dtYJ3KJW7J7+PDuxJL6ITpvoFeSzu3IFGKpe200Vd0Lx5V8nnFQfOenriaWT54Ag08keRG8/gsemsr2PnUoYnyRyR7KCNEkeR7uihVmdWVkSuHZOWp2BbKVNm62mbRkz4ZxJhQG58iox7TLXYFRgSNjk6H3Z4A4sX8F/0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729452353; c=relaxed/simple; bh=RNcNm73YFxI2mw85298aHNysRxtbk1/YS15Ot0qclE0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cfPvZF9egsRQLFUY/wQSYXoxO2VEZLAe6xBoz4/9k83Z6JkR54a6LA51L0S3WmiVjj8AlA6wxr9J+7EoE7064vDB2Ssw05W+HwNfdZ1osyrTB11KlGxgl8jmCkh+skH+h27vJ/S+gBehsQOALBiCJEP1ld0vizpy3qMeRi9gTrU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=O2OqfKit; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="O2OqfKit" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a9932aa108cso561443466b.2; Sun, 20 Oct 2024 12:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729452350; x=1730057150; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YcOx4WxMY2WBK7Mc2su49jW4Eb6fS7Tdmt1bvzgDxKY=; b=O2OqfKit9y8URK5lrFf6m0tJUkQzZeFEqVxN42OdScF49IcbVb1UtDctMJ6mBzCqY2 HT3WM7hfpaVA1QWWF6S8FEzPw7n9Tkfl1GkhOBwYZhLjik4NG9Cy/z60GveBQgvMwGCi AHR0iJGdPQaKrW1he/lgFQwAA4rCnuxXyv7mJ0AQfyxt6OLX+6SsZQESJckI9YuZ35h5 x+H/RsrKQ4fmoy32w3zfvD0/ghAPDkPK6eeL/xDjKHZjw0bLHZEToySS2a8bLlmfaEb0 xj3n75ymeh3tMpD/bS/w6RjbyDPs26R8fiOrV2PH9I9DUe1Xm1P0x6xQOnLYDy98EOvC rOJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729452350; x=1730057150; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YcOx4WxMY2WBK7Mc2su49jW4Eb6fS7Tdmt1bvzgDxKY=; b=qOnZp/XBxTluBXDqEgpCE2Jfl84lDHvnd/F5P08yEhh0wnvFi90WUV+DNhuPMTLgYv bObKvT86I1bvHQqZx2TvIf1lfE1VB4J/9o2hFErJJXc9/eyN8MuZp1iPzwTNkvRtOVj9 aQ4mHCph55MmWcXWH7ykx+8tk+SDZ5/iPV+yE2toYEmCsg8eFzA3QL7KbzeoK43phGXC PLdcrlcQ6vvubM/8G7+MmfK+sUNcVYtu103ZTT5odRPClNfvYbql1kfdVCfO9PUxW1u4 rG9b7QKcOqYLv3s/QvuphjUf8NBWM4QcQOkX1azKIF7NFF2MGE52OlzFjnlU0UxAdsTx m3xg== X-Gm-Message-State: AOJu0YynCrUMTyBJmD+9D2dDnL9M/bAweT1enxwP07Yo2JZG4lm+hRmu HKatwei2PiEY/z9tdOX+Yv4jjHRYBVe2oo4Z5WvLRMx6JbN/PyptWfPE5kWZ X-Google-Smtp-Source: AGHT+IHrIRR6662jiz1/MLPzgiL+O4H6cl5EH6smfC4/p9n/WH+PL9pdmKqtpO/eMa/r5fUsaam32A== X-Received: by 2002:a17:906:478b:b0:a9a:3705:9ad9 with SMTP id a640c23a62f3a-a9a69c98d93mr917151366b.50.1729452349656; Sun, 20 Oct 2024 12:25:49 -0700 (PDT) Received: from localhost.localdomain ([2a02:2f0e:c501:f600:f753:f6c2:4f3a:5d50]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a915599dasm117957366b.118.2024.10.20.12.25.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2024 12:25:49 -0700 (PDT) From: Ovidiu Panait To: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, Ovidiu Panait , Jia Jie Ho , William Qiu Subject: [PATCH 2/2] crypto: starfive - remove unneeded crypto_engine_stop() call Date: Sun, 20 Oct 2024 22:25:32 +0300 Message-Id: <20241020192532.4008-2-ovidiu.panait.oss@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241020192532.4008-1-ovidiu.panait.oss@gmail.com> References: <20241020192532.4008-1-ovidiu.panait.oss@gmail.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The explicit crypto_engine_stop() call is not needed, as it is already called internally by crypto_engine_exit(). Signed-off-by: Ovidiu Panait --- Cc: Jia Jie Ho Cc: William Qiu drivers/crypto/starfive/jh7110-cryp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/crypto/starfive/jh7110-cryp.c b/drivers/crypto/starfive/jh7110-cryp.c index e4dfed7ee0b0..56bb027210f3 100644 --- a/drivers/crypto/starfive/jh7110-cryp.c +++ b/drivers/crypto/starfive/jh7110-cryp.c @@ -151,7 +151,7 @@ static int starfive_cryp_probe(struct platform_device *pdev) ret = starfive_aes_register_algs(); if (ret) - goto err_algs_aes; + goto err_engine_start; ret = starfive_hash_register_algs(); if (ret) @@ -167,8 +167,6 @@ static int starfive_cryp_probe(struct platform_device *pdev) starfive_hash_unregister_algs(); err_algs_hash: starfive_aes_unregister_algs(); -err_algs_aes: - crypto_engine_stop(cryp->engine); err_engine_start: crypto_engine_exit(cryp->engine); err_engine: @@ -193,7 +191,6 @@ static void starfive_cryp_remove(struct platform_device *pdev) starfive_hash_unregister_algs(); starfive_rsa_unregister_algs(); - crypto_engine_stop(cryp->engine); crypto_engine_exit(cryp->engine); starfive_dma_cleanup(cryp);