* [PATCH] tee: optee: use dev_info in print_os_revision
@ 2020-03-02 12:21 Patrick Delaunay
2020-03-03 11:44 ` Jens Wiklander
2020-04-21 12:26 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Patrick Delaunay @ 2020-03-02 12:21 UTC (permalink / raw)
To: u-boot
Display TEE version at information level; this patch replaces
debug() call to dev_info() in print_os_revision() function.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---
drivers/tee/optee/core.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index 9fb5e658f9..5260dab3ac 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -512,7 +512,7 @@ static bool is_optee_api(optee_invoke_fn *invoke_fn)
res.a2 == OPTEE_MSG_UID_2 && res.a3 == OPTEE_MSG_UID_3;
}
-static void print_os_revision(optee_invoke_fn *invoke_fn)
+static void print_os_revision(struct udevice *dev, optee_invoke_fn *invoke_fn)
{
union {
struct arm_smccc_res smccc;
@@ -527,11 +527,12 @@ static void print_os_revision(optee_invoke_fn *invoke_fn)
&res.smccc);
if (res.result.build_id)
- debug("OP-TEE revision %lu.%lu (%08lx)\n", res.result.major,
- res.result.minor, res.result.build_id);
+ dev_info(dev, "OP-TEE: revision %lu.%lu (%08lx)\n",
+ res.result.major, res.result.minor,
+ res.result.build_id);
else
- debug("OP-TEE revision %lu.%lu\n", res.result.major,
- res.result.minor);
+ dev_info(dev, "OP-TEE: revision %lu.%lu\n",
+ res.result.major, res.result.minor);
}
static bool api_revision_is_compatible(optee_invoke_fn *invoke_fn)
@@ -626,7 +627,7 @@ static int optee_probe(struct udevice *dev)
return -ENOENT;
}
- print_os_revision(pdata->invoke_fn);
+ print_os_revision(dev, pdata->invoke_fn);
if (!api_revision_is_compatible(pdata->invoke_fn)) {
debug("%s: OP-TEE api revision mismatch\n", __func__);
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] tee: optee: use dev_info in print_os_revision
2020-03-02 12:21 [PATCH] tee: optee: use dev_info in print_os_revision Patrick Delaunay
@ 2020-03-03 11:44 ` Jens Wiklander
2020-04-21 12:26 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Jens Wiklander @ 2020-03-03 11:44 UTC (permalink / raw)
To: u-boot
On Mon, Mar 2, 2020 at 1:22 PM Patrick Delaunay <patrick.delaunay@st.com> wrote:
>
> Display TEE version at information level; this patch replaces
> debug() call to dev_info() in print_os_revision() function.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
> drivers/tee/optee/core.c | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Cheers,
Jens
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] tee: optee: use dev_info in print_os_revision
2020-03-02 12:21 [PATCH] tee: optee: use dev_info in print_os_revision Patrick Delaunay
2020-03-03 11:44 ` Jens Wiklander
@ 2020-04-21 12:26 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2020-04-21 12:26 UTC (permalink / raw)
To: u-boot
On Mon, Mar 02, 2020 at 01:21:53PM +0100, Patrick Delaunay wrote:
> Display TEE version at information level; this patch replaces
> debug() call to dev_info() in print_os_revision() function.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200421/8cb85be4/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-21 12:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-02 12:21 [PATCH] tee: optee: use dev_info in print_os_revision Patrick Delaunay
2020-03-03 11:44 ` Jens Wiklander
2020-04-21 12:26 ` Tom Rini
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.