mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 14:33:24 -04:00
soc: qcom: ice: Support IP version beyond v3
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. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260521131229.11199-1-mani@kernel.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
889ee1f4f6
commit
c709c76f4c
@@ -126,8 +126,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;
|
||||
|
||||
Reference in New Issue
Block a user