Skip to contentSkip to conversation

soc: qcom: ice: Support IP version beyond v3

PATCH Applied Manivannan Sadhasivam 3 participants 3 messages May 21 – Jul 7

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: qcom: ice: Support IP version beyond v3

From: Manivannan Sadhasivam <[email protected]>

This driver currently supports Inline Crypto Engine (ICE) IP version 3 and
4. But this driver fully supports v5 and should support upcoming versions as well. So extend the version check to support versions 3 and beyond.

---
 drivers/soc/qcom/ice.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/soc/qcom/ice.c +2 -2
index b203bc685cad..d3348b1fe85f 100644
@@ -121,8 +121,8 @@ static bool qcom_ice_check_supported(struct qcom_ice *ice)
 	int minor = FIELD_GET(GENMASK(23, 16), regval);
 	int step = FIELD_GET(GENMASK(15, 0), regval);
 
-	/* For now this driver only supports ICE version 3 and 4. */
-	if (major != 3 && major != 4) {
+	/* Support ICE version 3 and above. */
+	if (major < 3) {
 		dev_warn(dev, "Unsupported ICE version: v%d.%d.%d\n",
 			 major, minor, step);
 		return false;
Signature · 1 line
2.43.0
maintainer Applied
#2 lore raw
In reply to Manivannan Sadhasivam
Quoted 5 lines · Manivannan Sadhasivam

This driver currently supports Inline Crypto Engine (ICE) IP version 3 and
4. But this driver fully supports v5 and should support upcoming versions as well. So extend the version check to support versions 3 and beyond.

Applied, thanks!

[1/1] soc: qcom: ice: Support IP version beyond v3

      commit: c709c76f4cf1d8646362f5a00ce8da1bd8ed58d7

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>