From patchwork Wed Dec 7 15:29:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 631553 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp336753pvb; Wed, 7 Dec 2022 07:30:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf6UaHoelFAbyvo/aFZqKaOw2iqZu0TOLgxVyVl91/fttQO5gH355RN2zrRkJKSN+4tgXBhW X-Received: by 2002:a02:5447:0:b0:38a:66d5:f599 with SMTP id t68-20020a025447000000b0038a66d5f599mr2560856jaa.274.1670427016143; Wed, 07 Dec 2022 07:30:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670427016; cv=none; d=google.com; s=arc-20160816; b=VJ1OszifA4gQPSyF9mS9dQhLN7Pi3n0Zcxp+ROhBQoXR2BWGYViPuQcjmUj3HdwbOV gqj1GIbk1yfGEYsaXfcZhiEzq4DqSv/79gNK5c9CXCLbjU0Z/BV3MEd9kbYgV6Fah5Qw 4taibDLH1uKgmnlWhT4Ddd6PBZy+4ZOpUZhrOY3FpbPkWsUEudJ1C8R3K1SRjei2DQnD IR5nktpJH7g2W5puyB1fr9U2XpMpFS+WHXI4/8nveASMt4zVCnLR2g6ji3AzB96D4+WF TjMwmcmRYIs4VfrAZlzCgLO3dfP0CgH9Tao1EZCcrXBG9MbBZU+pH2ZSnnUGjRG62tKg ymkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=/lMMyfQjDXFOkjIv/bOCqQpp0Uc7uUGmuvOjhOQ0/pU=; b=zXTejPo0ZWGV1QVlzNWDJ2EAvQMuB6yIM1Ruv+5MJ0XpUcF9timURJv9ZYNjVcM7ri a+raJSNEeTs7h/4ipgkkNMJjC+GYAPLE6cumM8ZLqas/Xnpeq8BZhJNvP0IhscBzwKrX 2n3dx+8eukp/JlPz84FaUaEXp0Tfh66RkcZ9DbHxhwosgfAkZrz4l11rsdOH6YJWbNwF DwjRLspEPRuuXHwVqWBIfBArBnJA+L/sws9SDQg1EANMH2PTiBp9gtPLtEJFy3DMuVM9 VWMUnagWj6bVkOMj5Ip3EVLL6AUPuLm6Yw6Hks6U3AgNTtSlD96xNWBNftnZxHbRCw1w /6Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c9ZPlJiw; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id e21-20020a5d8ad5000000b006dd8e3492aasi11346938iot.58.2022.12.07.07.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 07:30:16 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c9ZPlJiw; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F2F3C85471; Wed, 7 Dec 2022 16:30:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="c9ZPlJiw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2B85C852E2; Wed, 7 Dec 2022 16:30:11 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AA4E8830FA for ; Wed, 7 Dec 2022 16:30:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=etienne.carriere@linaro.org Received: by mail-wr1-x42a.google.com with SMTP id h7so22591146wrs.6 for ; Wed, 07 Dec 2022 07:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/lMMyfQjDXFOkjIv/bOCqQpp0Uc7uUGmuvOjhOQ0/pU=; b=c9ZPlJiwKXeMNCyUFj/+bQ6PZrhpcxEtPmbcqQ0UEH7dHLQAXv0uz5Z3dJ0a/S+v07 x0+Ta8vnUcFSWawC6SxwDawM6lDGqdFjYrxDQAwTZW7KaIRXt6hUdIUbIieKRWlagVZF +S31xZx/AW3S1YEEBIvwf+kJGyxxN499tRYtrIWszFIgDjednTGoELvc3AMjjJdM/0mx 6K6/lzj0dpEV4b6iO7bDZJ9a6ZzK2lQZvvBey+Xy1mHj09BNRkzUmPsjhlq3lRBSNycQ P3lFW6cZjn63i0pEbpp2UeIxsRHieZr7thOhesynQ6pv0nzQfqdwfQxygJem4ZCNWFHO kslQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/lMMyfQjDXFOkjIv/bOCqQpp0Uc7uUGmuvOjhOQ0/pU=; b=it80ejCTDoQUW9/JM2Hbyp0GuPdVmkiJQ3PXPqLitL/Zq7aF00yFd/Jhhm8awcI2mX e64ZKiuGv+0xNX9LoE5XkeOvUJXHFozkuQUbloQvovPURWQ9JgXqMkrsSUi+4mflMj8T 7kD7dKck06KjuxUz9/+baT7HNYWxC36rjwSyosBzFiCPKbEMGhSMyV/0l5cR/CkQoljJ BvlJfjnAltHsnROxBUip0rnt56CrMzyScCmRKSIqJh49K1QeQTwU6srRmlRO8Jx7ra0H sMzy05IHVK0H3SZMeFbck3qvH0qygnujKcLg02tqaczGt2GKGNWjaaMF5JQRQBDiF9jx g8oA== X-Gm-Message-State: ANoB5plcKBm8XjN2uVbT2yM6Y49sSzwQxT5AlMkIQq6wgxLuESrccZyy eXrdYYpdrllqVKgzo4mScgNbQiu1eqMD2xRI X-Received: by 2002:a5d:4985:0:b0:242:4f37:30b1 with SMTP id r5-20020a5d4985000000b002424f3730b1mr403924wrq.68.1670427007935; Wed, 07 Dec 2022 07:30:07 -0800 (PST) Received: from lmecxl1178.lme.st.com ([80.215.162.103]) by smtp.gmail.com with ESMTPSA id l2-20020a5d6742000000b0024216d2e386sm19411957wrw.16.2022.12.07.07.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 07:30:07 -0800 (PST) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Jens Wiklander , Patrick Delaunay , Etienne Carriere Subject: [PATCH 1/2] tee: optee: don't fail probe because of optee-rng Date: Wed, 7 Dec 2022 16:29:59 +0100 Message-Id: <20221207153000.534581-1-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 Reviewed-by: Ilias Apalodimas Reviewed-by: Jens Wiklander Reviewed-by: Patrick Delaunay --- drivers/tee/optee/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index 9240277579..604fd1414f 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -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;