From patchwork Thu Jan 19 14:36:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 644081 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp245599pvb; Thu, 19 Jan 2023 06:36:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXvaE7Fiy7hoCz87hF9NBrcKXbdfko88e3zBXrsia0Kwba/HzxmxfPABMcVKan7dJsyl+uam X-Received: by 2002:aca:650d:0:b0:364:ce0f:c1e9 with SMTP id m13-20020aca650d000000b00364ce0fc1e9mr4722319oim.4.1674138998443; Thu, 19 Jan 2023 06:36:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674138998; cv=none; d=google.com; s=arc-20160816; b=P6ScGDVWO3bGXI14EaBK5mcs9BmCe8huYMN3nv+W5mEykuPb3UtFdjxQ6bG0pssInX GpHhPLyi/tZHJS5xhysSVaH5GkAwW1PbScvDcng4UAyFqBtN/26kQwOGA7yXT23P42UK GEFN1rnnrI6nVpTMNRO8alF2sOHKhTxS66/Ow2W+qlWEaSoqF2MKWNc/9/IVz39SRkNN GfwJL0kBmPN4oJQCrJYwUtnyNmqTkjnmAcNQqKQ/q5xGm+e2cmnOoGwwxLHZfavv1gSy oxU3DPA6pYg4qXhBua8sH7dQaww/Wb0nRBbTghw5FkPH39x08bZQWQZfAd/XH5+LGGw7 vX7Q== 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=8LUBcNGSd0FZLsJas4TWXXz9MidYYrCKBJdQ4EPx6J8=; b=GGaTJ/yux502Shj/SU1+56gVCJZjHadV4BJ5P0aJfjc8T4Z3ZBzu6sM8z3ebrQ4xAV 8I9Lup0Pk0he/Gmw/D3w9hx4iOKu6CogAy8Dn4scFTd2vRejRSrVFaZm100gRbSneK86 tvv9AdA5ILi9L95QeJQx5em2M1FJHzwaI5Qg157mhGQpNbhGkxT+Rw1ZvfXsPA8hri/q dHBFI6DKZ/X+MqbP3IrO/uMg+MNNKCeZAEGE0rmoaYM3StI+Gur2snhh8jp9XzqioQzu z8Moa/cMp50kHjKomLLiEaEauc2+qpR4sWF/3NmFARsyoCLtMmtxoP6VlpC3YTbDAd4R O8MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KnZyhnea; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id bm20-20020a0568081a9400b0036eabf044fasi1190885oib.180.2023.01.19.06.36.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 06:36:38 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KnZyhnea; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 9B84185606; Thu, 19 Jan 2023 15:36:27 +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="KnZyhnea"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4C82F85661; Thu, 19 Jan 2023 15:36:26 +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-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 1687685600 for ; Thu, 19 Jan 2023 15:36:24 +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-ej1-x634.google.com with SMTP id tz11so6299588ejc.0 for ; Thu, 19 Jan 2023 06:36:24 -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=8LUBcNGSd0FZLsJas4TWXXz9MidYYrCKBJdQ4EPx6J8=; b=KnZyhneambEPkhXcngdJ0SWgqkpg/xnMovJP9xpGW7hzKT8kJuYyTEmP0tCBx2kcAG cX+pZKJ86oOdB76l2nN1Hb27RF0dgT1pInc3Q2oBe7FN2ycpbn5Eo9+dj7WaVUJKF9VF nJr67vuoRL5SRmnYkRlSG/6YXuVgDoAtQ0xRaoP4FAPJJqmJTgB8WY8dtCnrwJfEBNmT CAa+OBt2yRDf4G7jqFTrVOJnZ+biDLvAIGV7+OsZ22X6Euw4EpakiTZPzDgJsOMcLPzX QFrLM97E9lEQwPP2LxP57IysJyxLn0rQOKFZ8MY3yqN4rIQBggLxNNBGClaxKdLrmYmH rfuQ== 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=8LUBcNGSd0FZLsJas4TWXXz9MidYYrCKBJdQ4EPx6J8=; b=zacoCjvRu6puTxetCQdiEHGqcbxF48cUY4hu6SivxL1ahOY4njmV5KnYB3cIq1fMpI Ef1UnVj0CngF172VCgUNgl+H3Rx0obaO0vusOmD+CrRS2FQWld7FyzBShCtuZVQyKX+v 7K6sPQp7QBWR77hgp4+lmWV4d0jtslbigWUrrIGApoIcmaOke1PwouO4Yf+ydzv9eqzb YJ06Jr4YdWTOIRNlZU777kWo3R1zTAkoFq9E7tuGP5Xq2svgxTe2+tV2jyNGbXUqhD/J Vcr7IGrrrSr8S7eL62oaZb11fULKvBaL5YaLkccancWVLwl47nlsxOaj4EotVJe9Jes/ c19w== X-Gm-Message-State: AFqh2koegfTP0oc+AFj22VrJULplZrB61IhMx7mp+yf49LAIg3tMaNnN lq03UTSYjBkM6Jjfpta+aKiKP6dAs/Kzdjg/ X-Received: by 2002:a17:906:68d6:b0:7ff:7876:9c60 with SMTP id y22-20020a17090668d600b007ff78769c60mr10722450ejr.15.1674138983741; Thu, 19 Jan 2023 06:36:23 -0800 (PST) Received: from localhost.localdomain ([2a02:85f:fc9d:e4b5:2167:2f0a:a8c9:c835]) by smtp.gmail.com with ESMTPSA id pv7-20020a170907208700b0085214114218sm12765024ejb.185.2023.01.19.06.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 06:36:23 -0800 (PST) From: Ilias Apalodimas To: u-boot@lists.denx.de Cc: etienne.carriere@linaro.org, Ilias Apalodimas Subject: [PATCH] tpm2: ftpm: add the device in the OP-TEE services list Date: Thu, 19 Jan 2023 16:36:12 +0200 Message-Id: <20230119143612.493142-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 commit fe8a4ed0111073 ("tee: optee: discover services dependent on tee-supplicant") is trying to automatically scan and add TAs that are presented on pseudo bus from the secure world. In orer to be able to list and compare the scanned devices the available drivers have to register themselves on the op-tee service list. Signed-off-by: Ilias Apalodimas Reviewed-by: Jens Wiklander Acked-by: Etienne Carriere --- drivers/tpm/tpm2_ftpm_tee.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tpm/tpm2_ftpm_tee.c b/drivers/tpm/tpm2_ftpm_tee.c index 3c4c12983daa..f0deaec5b076 100644 --- a/drivers/tpm/tpm2_ftpm_tee.c +++ b/drivers/tpm/tpm2_ftpm_tee.c @@ -18,10 +18,12 @@ #include #include #include +#include #include "tpm_tis.h" #include "tpm2_ftpm_tee.h" +OPTEE_SERVICE_DRIVER(optee_ftpm, TA_FTPM_UUID, "ftpm_tee"); /** * ftpm_tee_transceive() - send fTPM commands and retrieve fTPM response. * @sendbuf - address of the data to send, byte by byte