]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tee: optee: don't fail probe because of optee-rng
authorEtienne Carriere <etienne.carriere@linaro.org>
Wed, 7 Dec 2022 15:29:59 +0000 (16:29 +0100)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 23 Dec 2022 08:26:11 +0000 (10:26 +0200)
Fixes optee-rng driver bind sequence in optee driver to print a warning
message but not report an error status when a optee-rng service driver
fails to be bound as the optee driver itself is still fully functional.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tee/optee/core.c

index 9240277579be31fcbc0281cca1fac0cf504ca83d..604fd1414f3fe51a999a6b151558fa0da492e9ad 100644 (file)
@@ -834,7 +834,7 @@ static int optee_probe(struct udevice *dev)
                 */
                ret = device_bind_driver(dev, "optee-rng", "optee-rng", NULL);
                if (ret)
-                       return ret;
+                       dev_warn(dev, "ftpm_tee failed to bind: %d\n", ret);
        }
 
        return 0;