From patchwork Mon Mar 4 17:44:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1907822 X-Patchwork-Delegate: apalos@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=DAneO3tm; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TpR1D5VDNz23cw for ; Tue, 5 Mar 2024 04:45:20 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4B66A87D7F; Mon, 4 Mar 2024 18:45:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="DAneO3tm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C26B986F67; Mon, 4 Mar 2024 18:45:07 +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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 DFD3A875FA for ; Mon, 4 Mar 2024 18:45:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-412bf22b6a4so2458955e9.1 for ; Mon, 04 Mar 2024 09:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709574304; x=1710179104; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=o8Es4I6W/ckZvI4pjafaxAdhh6VCVQz0Q/4qVZhLC9Y=; b=DAneO3tmy1OM79PIVBDzNJ1zRFxlw2f6unY/EYMBEz5zgCRGwG3SwZQPijK2ytiDeH hG//cXNHawf2GnGUCJ+65MuMYkcx/laKtA6qJdxmfF4ah3F0/rn5nN1Wm5pOZ8aiidRd b31rkk4hXXCqpN7HybaP5Ibb1VrV1FVxv8TOV3JtgaY0whYtf1xprZxBlphFpKUhGvDS N+1Hv7o7MuRAAoXb85V8PIq/k45o+hmhQ4BZLBh1Way1QjwRGkn9DzplPxPRCB066LBf 1VUg3WSweWfqi6qPuqFfspcm/c8+V58nkdbwdSzLs/bn30ct/bycBQpZiWmckJ6egnHe BRsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709574304; x=1710179104; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o8Es4I6W/ckZvI4pjafaxAdhh6VCVQz0Q/4qVZhLC9Y=; b=CAkpKLfTAW1nzcoHhDFStN+i/yZfchmm03HMBnMZRV+LreZ0gwYEeEFVoHROf0cEH1 3wOXfB+aMXmwkUgoK72zXd+oYAhaQU1Gi0M5RYVxOputEfu4Q4oSSdCDb0QqWUz4Xg5t Z/+8okf1tfEb1lZonNSTQFO5gAOYk2UvWf2zPDyevujQTTXaNvKYNsfKwAlkt4dIx5e9 DZ1OyaP6wkR+WTErs4uDL2qXd82oA8H5KncEP06zzGvAZybdx5LPGhMP/ERo+oz7AnVT vGUsK4VJFIOCGhylqJkhAJbhWUuschyGTPCPjSxb1N/c84/miImmtaRt6Qrk2NWjaxn5 4FPw== X-Gm-Message-State: AOJu0Yy8oEF6Fk6epurmoowrEvbuwmarYSBrLu8IgeZbLDwBBNA/JxJh ZOKaSf8qgwQJgPEWlTNMOMxuW+oFpKge/ht8pJPTvT3/FrotdXg8EPGH2C5VAxM= X-Google-Smtp-Source: AGHT+IFgHrmQVFCPOOJhN6w1TvFHPhd9A//Ep/T+zeDuL6+ng6qkExcB3eg3wH19QS/z6tsM1IilpQ== X-Received: by 2002:a05:600c:1c12:b0:412:5670:ef62 with SMTP id j18-20020a05600c1c1200b004125670ef62mr7547594wms.1.1709574304345; Mon, 04 Mar 2024 09:45:04 -0800 (PST) Received: from localhost ([109.108.76.111]) by smtp.gmail.com with ESMTPSA id bn20-20020a056000061400b0033e43756d11sm1913245wrb.85.2024.03.04.09.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:45:03 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Igor Opaniuk , Heinrich Schuchardt , Ilias Apalodimas , Jens Wiklander , Tom Rini Subject: [PATCH v3 1/6] tee: optee: fix description in Kconfig Date: Mon, 4 Mar 2024 18:44:49 +0100 Message-Id: <20240304174454.1484507-2-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240304174454.1484507-1-igor.opaniuk@gmail.com> References: <20240304174454.1484507-1-igor.opaniuk@gmail.com> 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.8 at phobos.denx.de X-Virus-Status: Clean Fix OPTEE_TA_AVB symbol description in Kconfig: s/"write"rb"/"write_rb"/g Reviewed-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas Signed-off-by: Igor Opaniuk --- (no changes since v2) Changes in v2: - Applied R-b tags drivers/tee/optee/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tee/optee/Kconfig b/drivers/tee/optee/Kconfig index 9dc65b0501e..db0bcfa6f15 100644 --- a/drivers/tee/optee/Kconfig +++ b/drivers/tee/optee/Kconfig @@ -19,7 +19,7 @@ config OPTEE_TA_AVB default y help Enables support for the AVB Trusted Application (TA) in OP-TEE. - The TA can support the "avb" subcommands "read_rb", "write"rb" + The TA can support the "avb" subcommands "read_rb", "write_rb" and "is_unlocked". config OPTEE_TA_RPC_TEST From patchwork Mon Mar 4 17:44:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1907823 X-Patchwork-Delegate: apalos@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=lvsyZWgY; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TpR1Q3wrXz23cw for ; Tue, 5 Mar 2024 04:45:30 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4AD1A87FDC; Mon, 4 Mar 2024 18:45:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="lvsyZWgY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 399BC87F54; Mon, 4 Mar 2024 18:45:12 +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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (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 24C93876A9 for ; Mon, 4 Mar 2024 18:45:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-412e445aa25so409305e9.0 for ; Mon, 04 Mar 2024 09:45:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709574307; x=1710179107; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LszvFO/XjqacKZUdm0FgJmdBhHglvTqFQhFQ+sydK2w=; b=lvsyZWgYTzc1VBhexQ04UHXHksIk3/3noonSfEMj2gU6oKlt2z2yd7r7YMftK695PO oho+cGV2NRZ91z2q7dCrZIsArS6yENZ1Cip3vF8csXJE7cZDwaGgV9dDYE86I7BFPPpn gV2EUvW5fO/0l5VqPWAEjeoUC6+2N/5yhiwl3YNMnPVGjOdxXlFox6a4OU1oFiH1KPmC fHj2f0dzFHgvBqMQLCTbdqWsER7leqJXTDeZpbbmLiOItHlg8UdBkFxgKaIGi4HO7AsP YHz9yOALflg1gIoCos6pff00MNdDIduArv6gAPrTE9nHPmPFCXOCyoCiFCEo2XvxkD8m 18PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709574307; x=1710179107; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LszvFO/XjqacKZUdm0FgJmdBhHglvTqFQhFQ+sydK2w=; b=pKfETIVyIqq1ZoYvmCnKsk60lX0s7/OsbSm8XjpdnIaE9YmjvtX3Veuawf/pkmcf0F LN5LgharOJJ+3J15B0egfvL/77JVKlrzmbAZT9kUH8GWVHQXp+52GafRCkvff8vu58T3 cUWFSZSdi89T0AUIlu0R5fvGtbw9PVTvX6Nc4Wbikcu5tbI5plptvylfpj39SRMPxx38 V6etv4Qtu1tiLeKlOzwfwiExnnFaA5nxLnO2kU83VqZ6PYMhVslq3B4ymSjVsrH4Tk/t lh6fhNGvt7Wv4OL7RubZqpgyHzCMls51ezlPOxZa5Ua7hoE7DCqmR5WdsBQiSBFs6NMp SFvQ== X-Gm-Message-State: AOJu0Yy4LlUMXeGajP9xL5xc6+EXrAspVT9Fldsv/yvP0TToK94pjU03 NZQIJLHwovz4FthZo0OXLWxg6A/WUfie6hv+9l0rdNDAPtDeOUkVDBllKIx9LdE= X-Google-Smtp-Source: AGHT+IHtiHn3SCEWnnQomZdsPnfsWVL+08QYFjr70+dA60nszcIjAvDnz/iYyWc8W+RGXuf79ERB9w== X-Received: by 2002:a05:600c:3541:b0:412:c6c9:f329 with SMTP id i1-20020a05600c354100b00412c6c9f329mr7802246wmq.3.1709574306771; Mon, 04 Mar 2024 09:45:06 -0800 (PST) Received: from localhost ([109.108.76.111]) by smtp.gmail.com with ESMTPSA id jw21-20020a05600c575500b004126afe04f6sm18040902wmb.32.2024.03.04.09.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:45:05 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Igor Opaniuk , Heinrich Schuchardt , Ilias Apalodimas , Jens Wiklander , Jorge Ramirez-Ortiz , Simon Glass , Tom Rini Subject: [PATCH v3 2/6] tee: sandbox: fix spelling errors Date: Mon, 4 Mar 2024 18:44:50 +0100 Message-Id: <20240304174454.1484507-3-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240304174454.1484507-1-igor.opaniuk@gmail.com> References: <20240304174454.1484507-1-igor.opaniuk@gmail.com> 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.8 at phobos.denx.de X-Virus-Status: Clean Fix spelling errors in comments. Reviewed-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas Signed-off-by: Igor Opaniuk --- (no changes since v2) Changes in v2: - Applied R-b tags drivers/tee/sandbox.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tee/sandbox.c b/drivers/tee/sandbox.c index 86219a9bb1a..ec66401878c 100644 --- a/drivers/tee/sandbox.c +++ b/drivers/tee/sandbox.c @@ -14,7 +14,7 @@ #include "optee/optee_private.h" /* - * The sandbox tee driver tries to emulate a generic Trusted Exectution + * The sandbox tee driver tries to emulate a generic Trusted Execution * Environment (TEE) with the Trusted Applications (TA) OPTEE_TA_AVB and * OPTEE_TA_RPC_TEST available. */ @@ -23,7 +23,7 @@ static const u32 pstorage_max = 16; /** * struct ta_entry - TA entries * @uuid: UUID of an emulated TA - * @open_session Called when a session is openened to the TA + * @open_session Called when a session is opened to the TA * @invoke_func Called when a function in the TA is to be invoked * * This struct is used to register TAs in this sandbox emulation of a TEE. @@ -140,8 +140,8 @@ static u32 pta_scp03_invoke_func(struct udevice *dev, u32 func, uint num_params, provisioned = true; /* - * Either way, we asume both operations succeeded and that - * the communication channel has now been stablished + * Either way, we assume both operations succeeded and that + * the communication channel has now been established */ return TEE_SUCCESS; From patchwork Mon Mar 4 17:44:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1907824 X-Patchwork-Delegate: apalos@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=KNxODON6; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TpR1c0WfXz23cw for ; Tue, 5 Mar 2024 04:45:40 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AC2F887FEE; Mon, 4 Mar 2024 18:45:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="KNxODON6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A94BB87C4C; Mon, 4 Mar 2024 18:45:12 +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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 BCE8187EE4 for ; Mon, 4 Mar 2024 18:45:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-33d90b322b0so870927f8f.0 for ; Mon, 04 Mar 2024 09:45:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709574309; x=1710179109; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P76sNKMUNnVBtjMQCGQx54coxrxwSfHgwuQDNLm7P1U=; b=KNxODON646zNiPhcIjl9W8fYCRAhOKxjTzarhPS8CkczJnKu7h1K4gmfpq7nVCAyKa 9zoo6gINFasvUhn+1j8q4IQl2iq0jjlcHXXylg3wZX3oaNv2lyhSn0XU8kUqNbABNwRi nJhzrqHTdfwYbjI+JkroPXXtDTNuMJqTbdgcHqzep0rfXhL/gmT4N/DL6vryjGPCdQWm gB6rIL5GcTZEPmA1JbV5uYvAtdjyZ8p6ghHWbznMKpGumJ9FR6VF/GDRAJPfAUxfhJ3o 2/wnFk+3mH3PdarO3Cep4MHqRNmBEJAlsjcG0TJYaW86fIiX6aq7NqJZLCnLq4FdIYD3 ru4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709574309; x=1710179109; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P76sNKMUNnVBtjMQCGQx54coxrxwSfHgwuQDNLm7P1U=; b=kLHUe4Nu3QKq7In6ho1lIB3mV5iG3h8VtBfT5AMduy0tHSePmsrYsVKCQi+6jImklj ET48RGjqUPKsd4jCp0BgsD3/mCgVseuvDEEN86mLp+1+GPuiUKN1OLHXTdc6uehFFw1v o8ZzqUU/ztcR8pGZ/9VepoH3IqVb4XZQiuAlc6SfLZW4OUtSB8dWr1/JUAedqQngUtS1 aXrwqMqOwDSqq9zRyLPJUwUQ7HT08GnJsLUH9CZrerXiNGSjHmrO6oqihd+CteujWsfz SEcGyk2UUVYYi5Zs1t2J8DRKPAT+Gc8i092KYMefU6EGI8PL7FEVPAfC3+28sTSHNQdB CTHQ== X-Gm-Message-State: AOJu0YzbZCed33WIsdDhWDO+FOiKBQmL3EDwUvRAr9aWNCwdLIx1Vi7x yuioqyxSS13da9epPCBFmozHY5a5PrZqlDFTFuErky1UH1PeXnMSKSQM8BifLsI= X-Google-Smtp-Source: AGHT+IG3tBHHwpGN1je7eTwIfx/f3MMKYlkQV6UjozXA7sz4S+/svR/wBYFQ2ClJ6C+/Yz2lbVVY5g== X-Received: by 2002:adf:fe0b:0:b0:33e:c9e:991 with SMTP id n11-20020adffe0b000000b0033e0c9e0991mr6763856wrr.6.1709574308744; Mon, 04 Mar 2024 09:45:08 -0800 (PST) Received: from localhost ([109.108.76.111]) by smtp.gmail.com with ESMTPSA id j16-20020a5d6190000000b0033e0019b814sm12706356wru.34.2024.03.04.09.45.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:45:07 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Igor Opaniuk , Tom Rini Subject: [PATCH v3 3/6] cmd: optee_rpmb: close tee session Date: Mon, 4 Mar 2024 18:44:51 +0100 Message-Id: <20240304174454.1484507-4-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240304174454.1484507-1-igor.opaniuk@gmail.com> References: <20240304174454.1484507-1-igor.opaniuk@gmail.com> 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.8 at phobos.denx.de X-Virus-Status: Clean Add calls for closing tee session after every read/write operation. Signed-off-by: Igor Opaniuk --- (no changes since v1) cmd/optee_rpmb.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/cmd/optee_rpmb.c b/cmd/optee_rpmb.c index e0e44bbed04..b3cafd92410 100644 --- a/cmd/optee_rpmb.c +++ b/cmd/optee_rpmb.c @@ -87,8 +87,10 @@ static int read_persistent_value(const char *name, rc = tee_shm_alloc(tee, name_size, TEE_SHM_ALLOC, &shm_name); - if (rc) - return -ENOMEM; + if (rc) { + rc = -ENOMEM; + goto close_session; + } rc = tee_shm_alloc(tee, buffer_size, TEE_SHM_ALLOC, &shm_buf); @@ -125,6 +127,9 @@ out: tee_shm_free(shm_buf); free_name: tee_shm_free(shm_name); +close_session: + tee_close_session(tee, session); + tee = NULL; return rc; } @@ -139,17 +144,20 @@ static int write_persistent_value(const char *name, struct tee_param param[2]; size_t name_size = strlen(name) + 1; + if (!value_size) + return -EINVAL; + if (!tee) { if (avb_ta_open_session()) return -ENODEV; } - if (!value_size) - return -EINVAL; rc = tee_shm_alloc(tee, name_size, TEE_SHM_ALLOC, &shm_name); - if (rc) - return -ENOMEM; + if (rc) { + rc = -ENOMEM; + goto close_session; + } rc = tee_shm_alloc(tee, value_size, TEE_SHM_ALLOC, &shm_buf); @@ -178,6 +186,9 @@ out: tee_shm_free(shm_buf); free_name: tee_shm_free(shm_name); +close_session: + tee_close_session(tee, session); + tee = NULL; return rc; } From patchwork Mon Mar 4 17:44:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1907826 X-Patchwork-Delegate: apalos@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Nc6AZRHS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TpR1n2GgSz23cw for ; Tue, 5 Mar 2024 04:45:49 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1A92687EE4; Mon, 4 Mar 2024 18:45:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="Nc6AZRHS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1F03387FF2; Mon, 4 Mar 2024 18:45:14 +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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 128C187FCC for ; Mon, 4 Mar 2024 18:45:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-412b30be60dso2607715e9.0 for ; Mon, 04 Mar 2024 09:45:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709574311; x=1710179111; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=k5hYb9tvhIu26Zgptq0KxUqht+iLWEjbRWL/fVDmIIA=; b=Nc6AZRHSclRzHvwwzSLRW1bPOpYcDBBhrs19VAbq6W0b4K5jtOo2uU7qeU2MeRPgtp k3hwOjXap/ERtBW1KfhzZ2yqC9sL7RIvZIFGlFuyUX7+QoQqm+uzBO1ew4AN/V/0o083 PxW6JTc52o3nIvv2clexfu1Z1/w3jPIXllH+22ERW0KoOvjVUIDtgD4B7Im0xZxuHOKo l72LNgn1044x8DEYxzjlI/ANP3iQEQyy7fZK7x8P5e71Kg5NnkGP96tZ7xShP0XM8WKp msH4dGl5XsO48sX7D1Ra0gYUMFtq8qlUlcT1lZtC6ZVVlGdEYwxcT66cYKmVj2RR+TQZ LKCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709574311; x=1710179111; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k5hYb9tvhIu26Zgptq0KxUqht+iLWEjbRWL/fVDmIIA=; b=UuoOhapF+fCb5/tdd9NFQ8MntpH7ZQRInR3KAOXkBfFrvxVVO3agsA3NbeeyUhiKPi +uIAkoNVOGyIz254YvS2vvpIsevJT09s21yDQ8LMnQSRhRYWil5lypKd/7pEDMjT1V3L vsBSmVD0BCbPk+u0nVWiRCrTw04jar/d18aHt2qvjQNWIm4lCIR197+YOR1g9LsZQ3CN lpUzCDSxRB3LkFmy65v3cutWDjOnHqYTX2visxnx6aAuCnIFwQPlYUN0cciutyCzdE6Q ZBlCgK655LAZDy3IWPolvFmAhzok6W1yXqf3n4hs1XXAONkg+9KF4kzhww5q/6k+sTN/ hncA== X-Gm-Message-State: AOJu0YxSD2JWOpgDTar3YUDeCCS1BYqwK4gHx/rz7z1VjCg6SJRLujbY WRJJScMf3lSX/mNZdWQzhd73oxmelzYajIl5gFkTo07d/Mk+AZqt0a5tOWFqE14= X-Google-Smtp-Source: AGHT+IHi/M5LILBmt7M75cFG7cE32bNpCXHYtXaEYhV6Z+QZz2zE6E125nsouAK0LraIWhIvCniBkg== X-Received: by 2002:a05:600c:1c12:b0:412:5670:ef62 with SMTP id j18-20020a05600c1c1200b004125670ef62mr7547829wms.1.1709574311118; Mon, 04 Mar 2024 09:45:11 -0800 (PST) Received: from localhost ([109.108.76.111]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b00412e5633ee9sm2788436wms.43.2024.03.04.09.45.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:45:09 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Igor Opaniuk , Mattijs Korpershoek , AKASHI Takahiro , Abdellatif El Khlifi , Bin Meng , Francis Laniel , Heinrich Schuchardt , Miquel Raynal , Roger Knecht , Sean Edmond , Simon Glass , Tom Rini Subject: [PATCH v3 4/6] cmd: optee_rpmb: build cmd for sandbox Date: Mon, 4 Mar 2024 18:44:52 +0100 Message-Id: <20240304174454.1484507-5-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240304174454.1484507-1-igor.opaniuk@gmail.com> References: <20240304174454.1484507-1-igor.opaniuk@gmail.com> 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.8 at phobos.denx.de X-Virus-Status: Clean Support CMD_OPTEE_RPMB for SANDBOX configurations. Test: $ ./u-boot -d arch/sandbox/dts/test.dtb ... => optee_rpmb write_pvalue test_variable test_value Wrote 11 bytes => optee_rpmb read_pvalue test_variable 11 Read 11 bytes, value = test_value Reviewed-by: Mattijs Korpershoek Tested-by: Mattijs Korpershoek Signed-off-by: Igor Opaniuk --- (no changes since v2) Changes in v2: - Applied R-b and T-b tags cmd/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index a86b5705174..8ad8c0c542c 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1370,7 +1370,9 @@ config CMD_CLONE config CMD_OPTEE_RPMB bool "Enable read/write support on RPMB via OPTEE" - depends on SUPPORT_EMMC_RPMB && OPTEE + depends on (SUPPORT_EMMC_RPMB && OPTEE) || SANDBOX_TEE + default y if SANDBOX_TEE + select OPTEE_TA_AVB if SANDBOX_TEE help Enable the commands for reading, writing persistent named values in the Replay Protection Memory Block partition in eMMC by From patchwork Mon Mar 4 17:44:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1907827 X-Patchwork-Delegate: apalos@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=XTEq/evT; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TpR1y2jFmz23cw for ; Tue, 5 Mar 2024 04:45:58 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9A9AB87933; Mon, 4 Mar 2024 18:45:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="XTEq/evT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6DDE986F6E; Mon, 4 Mar 2024 18:45:16 +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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 716A787EBB for ; Mon, 4 Mar 2024 18:45:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-33d90b322b0so870941f8f.0 for ; Mon, 04 Mar 2024 09:45:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709574313; x=1710179113; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YJtJUJcbedJqKOLkywTj0CdSYjis/eHZTLZ328mQ3BU=; b=XTEq/evT0cpaD15fDmt/uvSBmm/6VQLSlMYEf77Wn7Cy/2dDuD4WwyBNmgj8LWldXf OKd3Yg3dL48UZgTlF+XU8KhOo4Yk+TimSLJdJryi3avVUMWUUepjCzFeF1ZwZODOoj/W MDFsj1QXBu3BkmcIp02HqzUr9wFAlqW/B+t+Pks/eLBUozysYWXd2BVdHxKfUvePcjM3 dD3Qlip55olD52pioAo7dneupi77dPG77v/kQM8o6uUMlBzyfkzSDjOdzyKvKi5TN99e ev7xHy3/pBI6F+M/aVhVJhK92EQqhZRO5f76yWk/qYr51YkkFNCbTe68Kx/ggL5gDz+M uo5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709574313; x=1710179113; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YJtJUJcbedJqKOLkywTj0CdSYjis/eHZTLZ328mQ3BU=; b=Y8LQLLRHqV+6Gz/+Sf549zK/y0ySML0wyIHW4po1j2mj+RnVOCfLl7C4wng807w4LC 8xEu/J1IPycDnZSlfSeDpcrWPeae6f0hZR2UdEotaI8B+NEZ6ByIxXDW/EX/ednChfzV RCWXYq5x1lecaA+XEFi0zy5Y2RSMIcKOw5sW4e4VqINO70upMBRa0ZlzLbDUBBfPKOrC HMBGXdjXfGdVLVsbw21IPWMIVbzOvh82dwkNE/OO74yu/iNf2ZjHF/LRXQtSdi0yzc7M p/Pf5L2nQVYzBIwcvFwRHQZcN5wXqmpjCt8ELkdkmGaYZC5c4FHbOY3nmRJh/T2wV5Bx k7Sw== X-Gm-Message-State: AOJu0YyH4ZJ4NPvziTVXQOMwRTvmQx4jP1BEbB/X4wiJfTbZ6WdtLqq1 WWJq7RdLhTOqFF3JyFS3I1r0p+5hT4EL/ZPVwDNlyRZtXIGxo3yjMOo+cWd3ZY8= X-Google-Smtp-Source: AGHT+IFs/b0Zvpz1y2QeFxQIQYCDGSL1eW8jBsi6HJZlaJQWKQ40X2mOG/4xy1X+OQuZVhWEj5/uQQ== X-Received: by 2002:adf:e78c:0:b0:33d:9ee1:48db with SMTP id n12-20020adfe78c000000b0033d9ee148dbmr7167870wrm.2.1709574312914; Mon, 04 Mar 2024 09:45:12 -0800 (PST) Received: from localhost ([109.108.76.111]) by smtp.gmail.com with ESMTPSA id r18-20020adfca92000000b0033dcc0d1399sm12761370wrh.25.2024.03.04.09.45.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:45:12 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Igor Opaniuk , Tom Rini Subject: [PATCH v3 5/6] test: py: add optee_rpmb tests Date: Mon, 4 Mar 2024 18:44:53 +0100 Message-Id: <20240304174454.1484507-6-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240304174454.1484507-1-igor.opaniuk@gmail.com> References: <20240304174454.1484507-1-igor.opaniuk@gmail.com> 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.8 at phobos.denx.de X-Virus-Status: Clean Add read/write tests for optee_rpmb cmd. Signed-off-by: Igor Opaniuk --- (no changes since v1) test/py/tests/test_optee_rpmb.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/py/tests/test_optee_rpmb.py diff --git a/test/py/tests/test_optee_rpmb.py b/test/py/tests/test_optee_rpmb.py new file mode 100644 index 00000000000..8a081b5c494 --- /dev/null +++ b/test/py/tests/test_optee_rpmb.py @@ -0,0 +1,20 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Tests for OP-TEE RPMB read/write support + +""" +This tests optee_rpmb cmd in U-Boot +""" + +import pytest +import u_boot_utils as util + +@pytest.mark.buildconfigspec('cmd_optee_rpmb') +def test_optee_rpmb_read_write(u_boot_console): + """Test OP-TEE RPMB cmd read/write + """ + response = u_boot_console.run_command('optee_rpmb write_pvalue test_variable test_value') + assert response == 'Wrote 11 bytes' + + response = u_boot_console.run_command('optee_rpmb read_pvalue test_variable 11') + assert response == 'Read 11 bytes, value = test_value' \ No newline at end of file From patchwork Mon Mar 4 17:44:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1907828 X-Patchwork-Delegate: apalos@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=S7OLRalm; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TpR273Jlfz23cw for ; Tue, 5 Mar 2024 04:46:07 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A175187FFA; Mon, 4 Mar 2024 18:45:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="S7OLRalm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9E9D387FDA; Mon, 4 Mar 2024 18:45:20 +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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 EF2F386F6E for ; Mon, 4 Mar 2024 18:45:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-412e41cab5aso684325e9.1 for ; Mon, 04 Mar 2024 09:45:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709574316; x=1710179116; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=29ZfrGGPw9deOi4jp/M1SFPGboRFKNilOsGHVs2N7NM=; b=S7OLRalmP5riUdv+Ei3Br904aaVByD7F2acPwODWfnvp9lhR+2kTLbGvTleJB18EIU aD5TzZ4YGVBgr8nqf39ouSb/9NoW9dnUu+cSCHcj44gaDnb2rAm1DstMV0IiLMi4Lz78 z0togSaLWDXuZRF87sYki/3UpVo5fT5kTkzkUjXcqH/NkVtWBOB7aEiIiNBJHlNhF49H BmO5eRkN9VVoMkohragYzs9KywtNxln63xzMpMHKW+5f3XwdT/YlQlKEKWfFSJuXtaXV Om4RbaCAH0/W2NqRVIBf1PfzKLqsYI9mwFSEUZhs8GuIiKXpeWNqZMJrfk62f1apdQRf CwDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709574316; x=1710179116; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=29ZfrGGPw9deOi4jp/M1SFPGboRFKNilOsGHVs2N7NM=; b=OGn4IGpENIxqE4hWK2wtrR6muUMvRZVWbK9WyZX90vzJBfbGnbf9LeHZV+tzVPr1Of tmG8+JeIXd9s428oe04O3TFny0xq+r6sshu2NocTk9pg+QNH+65Syj7L88CiEW1Tejhb qBeYWsSUK/uGy3GijrcDdmpID0IAozzaGfRD+5dIyPEnsSr9qE+VacqvBVigNB1vXskT azJM4AH2orE0+emooXs4F3pnWxxcDRg2GqCk+srkP/PbYeAWGy4Lg3FOXil2UoA7BhHZ euNqvax3TpOnJZPEUYqrs2F1kPncgAOBwtUe6UDu634Ijg22tfhy7cU1c825YKwuEeXy qZtg== X-Gm-Message-State: AOJu0YyNtnD5ty7UIkSoQ6wgwWclLdpZLisWwBFjPRtU3AjgacLiFgRV sRHJcVcqtf+Q92pqi6VVhXW+rYBcFAtGFrd71vHkdM/cbCb12vkCvPn/TY0ZWhI= X-Google-Smtp-Source: AGHT+IFdjMHRzm6eT81ZzDa28Ao3iZlegKddAf5tV/YNkzElFU4hOX7zeRO4z1qVdeSIQnVqeJjRIg== X-Received: by 2002:a05:600c:1d1f:b0:412:c327:4064 with SMTP id l31-20020a05600c1d1f00b00412c3274064mr7695664wms.3.1709574315603; Mon, 04 Mar 2024 09:45:15 -0800 (PST) Received: from localhost ([109.108.76.111]) by smtp.gmail.com with ESMTPSA id w15-20020a05600c474f00b00412ca1dc2e4sm11267844wmo.7.2024.03.04.09.45.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:45:14 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Igor Opaniuk , Etienne Carriere , Heinrich Schuchardt , Ilias Apalodimas , Jens Wiklander , Jorge Ramirez-Ortiz , Patrice Chotard , Simon Glass , Tom Rini Subject: [PATCH v3 6/6] tee: remove common.h inclusion Date: Mon, 4 Mar 2024 18:44:54 +0100 Message-Id: <20240304174454.1484507-7-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240304174454.1484507-1-igor.opaniuk@gmail.com> References: <20240304174454.1484507-1-igor.opaniuk@gmail.com> 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.8 at phobos.denx.de X-Virus-Status: Clean The usage of the common.h include file is deprecated [1], and has already been removed from several files. Get rid of all inclusions in the "drivers/tee" directory, and replace it with required include files directly where needed. [1] doc/develop/codingstyle.rst Signed-off-by: Igor Opaniuk Reviewed-by: Ilias Apalodimas Reviewed-by: Sam Protsenko --- Changes in v2: - Fixed chimp_optee.c:37:9: error: implicit declaration of function 'memset' drivers/tee/broadcom/chimp_optee.c | 3 ++- drivers/tee/optee/core.c | 1 - drivers/tee/optee/i2c.c | 1 - drivers/tee/optee/rpmb.c | 1 - drivers/tee/optee/supplicant.c | 2 +- drivers/tee/sandbox.c | 2 +- drivers/tee/tee-uclass.c | 1 - 7 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/tee/broadcom/chimp_optee.c b/drivers/tee/broadcom/chimp_optee.c index 37f9b094f76..bd146ef2899 100644 --- a/drivers/tee/broadcom/chimp_optee.c +++ b/drivers/tee/broadcom/chimp_optee.c @@ -3,9 +3,10 @@ * Copyright 2020 Broadcom. */ -#include #include #include +#include +#include #ifdef CONFIG_CHIMP_OPTEE diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index 47f845cffe3..5fc0505c788 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -3,7 +3,6 @@ * Copyright (c) 2018-2020 Linaro Limited */ -#include #include #include #include diff --git a/drivers/tee/optee/i2c.c b/drivers/tee/optee/i2c.c index ef4e10f9912..e3fb99897c5 100644 --- a/drivers/tee/optee/i2c.c +++ b/drivers/tee/optee/i2c.c @@ -3,7 +3,6 @@ * Copyright (c) 2020 Foundries.io Ltd */ -#include #include #include #include diff --git a/drivers/tee/optee/rpmb.c b/drivers/tee/optee/rpmb.c index 5bc13757ea8..bacced6af6c 100644 --- a/drivers/tee/optee/rpmb.c +++ b/drivers/tee/optee/rpmb.c @@ -3,7 +3,6 @@ * Copyright (c) 2018 Linaro Limited */ -#include #include #include #include diff --git a/drivers/tee/optee/supplicant.c b/drivers/tee/optee/supplicant.c index f9dd874b594..8a426f53ba8 100644 --- a/drivers/tee/optee/supplicant.c +++ b/drivers/tee/optee/supplicant.c @@ -3,10 +3,10 @@ * Copyright (c) 2018, Linaro Limited */ -#include #include #include #include +#include #include #include "optee_msg.h" diff --git a/drivers/tee/sandbox.c b/drivers/tee/sandbox.c index ec66401878c..8ad7c09efdd 100644 --- a/drivers/tee/sandbox.c +++ b/drivers/tee/sandbox.c @@ -2,7 +2,7 @@ /* * Copyright (C) 2018 Linaro Limited */ -#include + #include #include #include diff --git a/drivers/tee/tee-uclass.c b/drivers/tee/tee-uclass.c index 52412a4098e..0194d732193 100644 --- a/drivers/tee/tee-uclass.c +++ b/drivers/tee/tee-uclass.c @@ -5,7 +5,6 @@ #define LOG_CATEGORY UCLASS_TEE -#include #include #include #include