Skip to content

Commit 0447da7

Browse files
committed
drivers: crypto: intel: Update tf-a sipsvc version check logic
Perform the required configurations if major version is greater than reference or if it is equal, make sure the minor version is within the desired range. Signed-off-by: Girisha Dengi <[email protected]>
1 parent 0cf70af commit 0447da7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/crypto/intel_fcs_main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ static void fcs_atf_version_smmu_check_callback(struct stratix10_svc_client *cli
107107

108108
priv->status = data->status;
109109
if (data->status == BIT(SVC_STATUS_OK)) {
110-
if ((*((unsigned int *)data->kaddr1) >= ATF_SMMU_FW_MAJOR_VER) &&
111-
(*((unsigned int *)data->kaddr2) >= ATF_SMMU_FW_MIN_VER))
110+
if ((*((unsigned int *)data->kaddr1) > ATF_SMMU_FW_MAJOR_VER) ||
111+
((*((unsigned int *)data->kaddr1) == ATF_SMMU_FW_MAJOR_VER) &&
112+
(*((unsigned int *)data->kaddr2) >= ATF_SMMU_FW_MIN_VER)))
112113
priv->status = 0;
113114
else
114115
priv->status = -1;

0 commit comments

Comments
 (0)