Skip to content

Commit 8d67b79

Browse files
LeviYeoReumjarkkojs
authored andcommitted
tpm_crb_ffa: use dev_xx() macro to print log
Instead of pr_xxx() macro, use dev_xxx() to print log. This patch changes some error log level to warn log level when the tpm_crb_ffa secure partition doesn't support properly but system can run without it. (i.e) unsupport of direct message ABI or unsupported ABI version Signed-off-by: Yeoreum Yun <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent a85b55e commit 8d67b79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/char/tpm/tpm_crb_ffa.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ static int tpm_crb_ffa_probe(struct ffa_device *ffa_dev)
303303

304304
if (!ffa_partition_supports_direct_recv(ffa_dev) &&
305305
!ffa_partition_supports_direct_req2_recv(ffa_dev)) {
306-
pr_err("TPM partition doesn't support direct message receive.\n");
306+
dev_warn(&ffa_dev->dev, "partition doesn't support direct message receive.\n");
307307
return -EINVAL;
308308
}
309309

@@ -324,17 +324,17 @@ static int tpm_crb_ffa_probe(struct ffa_device *ffa_dev)
324324
rc = tpm_crb_ffa_get_interface_version(&tpm_crb_ffa->major_version,
325325
&tpm_crb_ffa->minor_version);
326326
if (rc) {
327-
pr_err("failed to get crb interface version. rc:%d", rc);
327+
dev_err(&ffa_dev->dev, "failed to get crb interface version. rc:%d\n", rc);
328328
goto out;
329329
}
330330

331-
pr_info("ABI version %u.%u", tpm_crb_ffa->major_version,
331+
dev_info(&ffa_dev->dev, "ABI version %u.%u\n", tpm_crb_ffa->major_version,
332332
tpm_crb_ffa->minor_version);
333333

334334
if (tpm_crb_ffa->major_version != CRB_FFA_VERSION_MAJOR ||
335335
(tpm_crb_ffa->minor_version > 0 &&
336336
tpm_crb_ffa->minor_version < CRB_FFA_VERSION_MINOR)) {
337-
pr_err("Incompatible ABI version");
337+
dev_warn(&ffa_dev->dev, "Incompatible ABI version\n");
338338
goto out;
339339
}
340340

0 commit comments

Comments
 (0)