From patchwork Wed Jan 18 15:38:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 643687 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp1834277pvb; Wed, 18 Jan 2023 07:38:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXvy0ke/hvFaq8wil0nadU1chc8DKt5l4hCzk1SMuiPNF4MkUnXDo1nb2rlu44ecRgd+3NGP X-Received: by 2002:a05:6870:aa99:b0:15f:2172:19a7 with SMTP id gr25-20020a056870aa9900b0015f217219a7mr4378373oab.36.1674056319730; Wed, 18 Jan 2023 07:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674056319; cv=none; d=google.com; s=arc-20160816; b=dEtmYTKL/TPkEuRlAdHKTrGGepkLxd/QJQ8OuuKaGJQbrLq65uPoAIyBMYwMDcZc11 5HgLXcgeVdfoGj+GqwV6Ef+UhscC37b3Aq6oSf6374dl7OxkZOwhLGAOf/Tx0T4s1nfj LwuQiR3PkEQ2sA2RoShEpy8+8EdH9Xf7vt9BUv40Qx+6nyDUCpMymat4NHiufD0AWAw0 /ZKSFLv6g9lNXZDvVmnK6xwxl1UQTAHoN/NfDWV+bqzYdqNFmddEMMZvwJg2BDFcxfh1 U5I73/x8+5rELoCoU3P+0owUu5+Brru8M3w6vb0nEDPVCr2OuMJ7NyeVGPHShZkWghh3 EzXA== 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=zVODTCXtu4iz88+zZ2jUMPfK4lbrVqGSAPxYwkCaKug=; b=NYZD5C3UpCIa4s0s9Y+EamTgIU9uhGswt9PWVkqlfW7AOGAuaW/FC7MbNZnoSX/6Gh dTbeVTt6GIAoL9cFeJm8EjQbiGQ/TqQabgHvPJPP/TQ+s++RFnXNYrDnj6YiKl9JRDaE V7LpbgRaCl585xqrjCgmZOlhG8OIf7YBD87fMcbC/MSswnJPfrbujZNdE54xd716p2Kl n7ZgotJNAPwxwSdpOAfy9ZByFzwOYjPFC3ugHqFMzJD/zaDbx0QoF2ew+tDmJ7MIiWhn Ek5wm807BDctcQ4epkYvCcJHErPQvmQYDhRfHKkQAGLqKJFcbxTKyRTb7ZTOGkteOWIh kSDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vac1mrfL; 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 u21-20020a4a9e95000000b004f533fcd192si6021143ook.2.2023.01.18.07.38.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 07:38:39 -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=Vac1mrfL; 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 75CA48535B; Wed, 18 Jan 2023 16:38:35 +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="Vac1mrfL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 79CAD85602; Wed, 18 Jan 2023 16:38:33 +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-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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 2F9CB85103 for ; Wed, 18 Jan 2023 16:38:31 +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=ilias.apalodimas@linaro.org Received: by mail-ed1-x52f.google.com with SMTP id v10so48926756edi.8 for ; Wed, 18 Jan 2023 07:38:31 -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=zVODTCXtu4iz88+zZ2jUMPfK4lbrVqGSAPxYwkCaKug=; b=Vac1mrfLI/a8rui5W40cMfp2rXXPzZbjuDcjGvbiuvsG0J+3Mj+So6JfPfTUFxUA3c u0Qf0h24bpq/KxKBykTkSqxV79pTVUWtzW6PDRB03sEtLWC1aT/OiCP0c1c2gYkXwws5 vZj4Gl2kikI91rF9A5UEW8D7ncaUKHu1Noaq9G1dPEICmFRPxKQQx79vNjuVoo9HqlVX qQ+0JCGFc/RjFZADZDHlQsXbaToPnSltNBvUNT0X8DbXjK2gHsxuK1cZsXvNEA65kIES j8U7oy3fvrUiBruXydBKRWBoHrBs3XA6DdYyGXLlNpUekESCTGiiFFKHcLftWXN041qs JdFg== 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=zVODTCXtu4iz88+zZ2jUMPfK4lbrVqGSAPxYwkCaKug=; b=JkssHERfKFAn26M184beP3eRJkFexP8n5IZ3kFFK8R0wgT/LIXo/HPIZVUzk8v6mE8 3olIH3cixTSviG//rXAzQH+dzQgoezZiSOga5YRxh445E85JhWbPKoaMHZ28kHduUgD+ mtG7yW4mKc9pW/p3VRL5h4s+YYCnaag0oE4EmjrwFhGWluIl2LS89XSjyTkG5/wtizze 0JAuN2uYqStJXjnatXA1QAI4C2rTeK8CielAaWL8MN4kdY6DCf5eMX3/MR605DroWZak dPIeNZL067qo5i/JPDkmnpgm3rXmAmfAZ08cIDW3ApX818FvP3nAQlO0jyn0PnQKL1U8 6Tpg== X-Gm-Message-State: AFqh2kp6+m3xtXZBhKB8i9DKJ3YOd+DHbtI/prpoFnel3YpbVJO0zHfk 9vfJclc9CVgqfOhnLmwgSv04cclAV3foVHDM X-Received: by 2002:aa7:de95:0:b0:49d:be2b:b9b1 with SMTP id j21-20020aa7de95000000b0049dbe2bb9b1mr7352912edv.36.1674056310793; Wed, 18 Jan 2023 07:38:30 -0800 (PST) Received: from localhost.localdomain ([2a02:85f:fc9d:e4b5:ed50:5d98:6c51:1254]) by smtp.gmail.com with ESMTPSA id 2-20020a170906200200b007bd7178d311sm14881621ejo.51.2023.01.18.07.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 07:38:30 -0800 (PST) From: Ilias Apalodimas To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Jens Wiklander , Patrick Delaunay , Etienne Carriere , Patrice Chotard Subject: [PATCH] tee: optee: fix a print error on rng probing Date: Wed, 18 Jan 2023 17:38:21 +0200 Message-Id: <20230118153821.3853412-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.38.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 If we fail to probe the optee-rng device, we print a wrong message referring to the firmware tpm. Signed-off-by: Ilias Apalodimas Reviewed-by: Patrick Delaunay Reviewed-by: Etienne Carriere Reviewed-by: Jens Wiklander --- 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 a813a84a4f16..88e23d252bcd 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -850,7 +850,7 @@ static int optee_probe(struct udevice *dev) ret = device_bind_driver_to_node(dev, "optee-rng", "optee-rng", dev_ofnode(dev), NULL); if (ret) - dev_warn(dev, "ftpm_tee failed to bind: %d\n", ret); + dev_warn(dev, "optee-rng failed to bind: %d\n", ret); } return 0;