]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tee: optee: use dev_info in print_os_revision
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 2 Mar 2020 12:21:53 +0000 (13:21 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 17 Apr 2020 16:32:36 +0000 (12:32 -0400)
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>
drivers/tee/optee/core.c

index 9fb5e658f921da24299a6af5f4ef4ef5f6463b7d..5260dab3ac0e7e253c902da0873e99948c85cf48 100644 (file)
@@ -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__);