All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: Yeoreum Yun <yeoreum.yun@arm.com>
Cc: peterhuewe@gmx.de, jgg@ziepe.ca, sudeep.holla@arm.com,
	stuart.yoder@arm.com, sgarzare@redhat.com,
	linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 2/2] tpm_crb_ffa: use dev_xx() macro to print log
Date: Wed, 30 Apr 2025 18:51:45 +0300	[thread overview]
Message-ID: <aBJHESVFL6K0pgmd@kernel.org> (raw)
In-Reply-To: <20250415185013.2387369-3-yeoreum.yun@arm.com>

On Tue, Apr 15, 2025 at 07:50:13PM +0100, Yeoreum Yun wrote:
> 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 <yeoreum.yun@arm.com>
> ---
>  drivers/char/tpm/tpm_crb_ffa.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/char/tpm/tpm_crb_ffa.c b/drivers/char/tpm/tpm_crb_ffa.c
> index fed775cf53ab..66b38b2cbdd5 100644
> --- a/drivers/char/tpm/tpm_crb_ffa.c
> +++ b/drivers/char/tpm/tpm_crb_ffa.c
> @@ -303,7 +303,7 @@ static int tpm_crb_ffa_probe(struct ffa_device *ffa_dev)
>  
>  	if (!ffa_partition_supports_direct_recv(ffa_dev) &&
>  	    !ffa_partition_supports_direct_req2_recv(ffa_dev)) {
> -		pr_err("TPM partition doesn't support direct message receive.\n");
> +		dev_warn(&ffa_dev->dev, "partition doesn't support direct message receive.\n");
>  		return -EINVAL;
>  	}
>  
> @@ -324,17 +324,17 @@ static int tpm_crb_ffa_probe(struct ffa_device *ffa_dev)
>  	rc = tpm_crb_ffa_get_interface_version(&tpm_crb_ffa->major_version,
>  					       &tpm_crb_ffa->minor_version);
>  	if (rc) {
> -		pr_err("failed to get crb interface version. rc:%d", rc);
> +		dev_err(&ffa_dev->dev, "failed to get crb interface version. rc:%d\n", rc);
>  		goto out;
>  	}
>  
> -	pr_info("ABI version %u.%u", tpm_crb_ffa->major_version,
> +	dev_info(&ffa_dev->dev, "ABI version %u.%u\n", tpm_crb_ffa->major_version,
>  		tpm_crb_ffa->minor_version);
>  
>  	if (tpm_crb_ffa->major_version != CRB_FFA_VERSION_MAJOR ||
>  	    (tpm_crb_ffa->minor_version > 0 &&
>  	    tpm_crb_ffa->minor_version < CRB_FFA_VERSION_MINOR)) {
> -		pr_err("Incompatible ABI version");
> +		dev_warn(&ffa_dev->dev, "Incompatible ABI version\n");
>  		goto out;
>  	}
>  
> -- 
> LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}
> 
> 

Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>

BR, Jarkko

      parent reply	other threads:[~2025-04-30 15:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-15 18:50 [PATCH v5 0/2] tpm_ffa_crb: add support direct message request v2 Yeoreum Yun
2025-04-15 18:50 ` [PATCH v5 1/2] tpm_ffa_crb: access tpm service over FF-A " Yeoreum Yun
2025-04-30 15:51   ` Jarkko Sakkinen
2025-04-15 18:50 ` [PATCH v5 2/2] tpm_crb_ffa: use dev_xx() macro to print log Yeoreum Yun
2025-04-16  9:08   ` Stefano Garzarella
2025-04-30 15:51   ` Jarkko Sakkinen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aBJHESVFL6K0pgmd@kernel.org \
    --to=jarkko@kernel.org \
    --cc=jgg@ziepe.ca \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterhuewe@gmx.de \
    --cc=sgarzare@redhat.com \
    --cc=stuart.yoder@arm.com \
    --cc=sudeep.holla@arm.com \
    --cc=yeoreum.yun@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.