]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tee: optee: don't fail on services enumeration failure
authorEtienne Carriere <etienne.carriere@foss.st.com>
Wed, 29 Nov 2023 12:37:52 +0000 (13:37 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 19 Dec 2023 15:07:48 +0000 (10:07 -0500)
Change optee probe function to only warn when service enumeration
sequence fails instead of reporting an optee driver probe failure.
Indeed U-Boot can still use OP-TEE even if some OP-TEE services are
not discovered.

Fixes: 94ccfb78a4d6 ("drivers: tee: optee: discover OP-TEE services")
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/core.c

index 9a9b697e91f51d5145a08e2f5c1c80bc2fe8decc..5308dd58ce973d8ea540c5e3901feae9c0614d48 100644 (file)
@@ -841,7 +841,7 @@ static int optee_probe(struct udevice *dev)
        if (IS_ENABLED(CONFIG_OPTEE_SERVICE_DISCOVERY)) {
                ret = bind_service_drivers(dev);
                if (ret)
-                       return ret;
+                       dev_warn(dev, "optee service enumeration failed: %d\n", ret);
        } else if (IS_ENABLED(CONFIG_RNG_OPTEE)) {
                /*
                 * Discovery of TAs on the TEE bus is not supported in U-Boot: