From patchwork Thu Apr 4 08:13:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1919664 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=NcPBBD9r; 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 4V9Dt023YZz1yYn for ; Thu, 4 Apr 2024 19:14:16 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 59086883C8; Thu, 4 Apr 2024 10:14:05 +0200 (CEST) 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="NcPBBD9r"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 45F68883D6; Thu, 4 Apr 2024 10:14:04 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (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 55F03883C6 for ; Thu, 4 Apr 2024 10:14:02 +0200 (CEST) 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-lf1-x130.google.com with SMTP id 2adb3069b0e04-516ced2f94cso56611e87.1 for ; Thu, 04 Apr 2024 01:14:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712218441; x=1712823241; 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=NcPBBD9rHGb+dCYhNFE0DSRSSOaCv9DDN0i3r7Pb5+BKcsS7PMFH/CXRYiyz/1DUXE GGO2lR+W5XURJz2A2uQSewrCfcOp++hoqYHmIGcCQbXU4B5obCW1z1sN/PlRrbIdS5BC Vm3YP2V3df+3rs+GwuxFlNRMo+Zr2izuftuhlxekbveD9mdxQUKpfkqMUFi842ltuD7n JSIQPmjTx3Q2YMtXuDICkjUFxWrOhLpU5LEIG7i6ymBMXK3JZtCn7Sk6SJDTVH/If92x v3dSnP49z9pCKjUiEuAQq2+Q6di0/OZ1/ZX/ni6+TPV0vx+6kAXAEj/mB6l+0qz4Ofl9 XZIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712218441; x=1712823241; 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=aOgpFmnEYGCzW55FOuYlrFxql6Y2H51xFhs6hUgHyGy8kwOli8xgDjBEqpOKdATTCO gR2RoQLNMopwIYtrF53lobiSKR2ihZZb8HFN/NJfvE2+uzrbP15GeELYaA0uwmw9BwM1 UKbiaLnXq2V7oPYQ0hsXLeaHr2Au0s4UGEb2xzUOi34ipU1C1AITEmleytbs/RZ7fVSd DicuF68FwcsC8TAeAnGlKbMMTuQME1NqzSKEN2Jj+YEhetTNCTzL/w6Ie8SRS8vJTa6S Vl6+H/Lsuu4BkdgvDJvv1c63SIWFSH5Zw1dNKpgzAG1sayjG9jTR1uqhkC7e3Kmk7Xzh QLEA== X-Gm-Message-State: AOJu0YzD+gsw5QyrzPA/cwKMV3oTzkjKovII40/YNH21BC2hkTKv3Z/H F7R3aEOKuTit1rL+E0XlQlHzZ0YYQ3JVxavTOticEmN5zymDyQ15SNmKV8l6tSPGaQ== X-Google-Smtp-Source: AGHT+IForpt6P+c9woi/BoF9zjnK5BVwdVOab2aNZ927ollAlc+ZaVdxmczRwqTSQ7B710gR9UiPnw== X-Received: by 2002:ac2:4c85:0:b0:516:c7e0:6493 with SMTP id d5-20020ac24c85000000b00516c7e06493mr1023626lfl.6.1712218440516; Thu, 04 Apr 2024 01:14:00 -0700 (PDT) Received: from localhost ([185.186.156.113]) by smtp.gmail.com with ESMTPSA id z17-20020a056512309100b00515d53b1fc2sm1582577lfd.62.2024.04.04.01.13.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:13:59 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Igor Opaniuk , Heinrich Schuchardt , Ilias Apalodimas , Jens Wiklander , Tom Rini Subject: [PATCH v4 1/5] tee: optee: fix description in Kconfig Date: Thu, 4 Apr 2024 10:13:48 +0200 Message-Id: <20240404081352.3224643-2-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240404081352.3224643-1-igor.opaniuk@gmail.com> References: <20240404081352.3224643-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 Thu Apr 4 08:13: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: 1919665 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=UlvmDQY1; 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 4V9Dt84rHpz1yYn for ; Thu, 4 Apr 2024 19:14:24 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D073E883DE; Thu, 4 Apr 2024 10:14:11 +0200 (CEST) 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="UlvmDQY1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 62DC6883E7; Thu, 4 Apr 2024 10:14:10 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (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 75898883DE for ; Thu, 4 Apr 2024 10:14:08 +0200 (CEST) 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-lf1-x135.google.com with SMTP id 2adb3069b0e04-513dca8681bso234463e87.0 for ; Thu, 04 Apr 2024 01:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712218447; x=1712823247; 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=UlvmDQY11cIcHr0aAIsivrD+gRX/akWMTozW75qv/7AeM3q972KhHtfrLkgYMDmO+6 y0OSdmkOkxubNJNPjmLXm0VcmxE18i5okiKI45CI9jPuLU0WvgdFz/Dk+b50zQ88EivB C7ZOck4yqxvJ/dwVUqliSlPf80sehrj/WGa3MK2e2CohTHHL2gViyynNKT0vSn1uRnOo 4tfMDbseJkOcD32rPgL/ifLki1aGBzreL1+SmygdaPl7D+pKalWx3avDx866GXcCK9oh 7C2Dw1QWWActei6QCN63a80995y+z6lUNulWKOaefN0l8OBePFcnPQBBBT4J2OlYctEN TX/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712218447; x=1712823247; 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=QwR+Irn5s4c9fvQDO3X2e96nmiP7AoLu8s9tvS11XpMfBVjxzKE4L4LHxDzJpwtEJY EY8mkzzEzdCpZHnfIPqh+Uhjyh7T6u3GOj5NYJXCF42PDYyA5AxzSufULRNutcoQuenV dfenlVAbPvXVsRtkTUgbeblHqJrK017mf3u+kr9TiX2z8KYh3eol/8SWzdn/yTl/Gine Vxi9cyArOYxq9LUJGIady4BKurusrXN5pdRtB2RHiy9XQi0VgbL0nm5WCv8k7RPLsAZ8 5cPr0CPeOyifwFmTZM5LjKC7PsVFCcGN/2TzvJnm1BcD1ygNXkcy3G625a0UnLG67qKL P14g== X-Gm-Message-State: AOJu0YyIodmSYuTUUFvSatHnZqgh8rqaVWMRTel+wG2AHtrRYVTrBBCg auuPCq3FifjeNxLSEKMEORlGVlbYZ9HoAPjQZP+Yt90jtbFYfY9oAs+OSTQTaI6wpw== X-Google-Smtp-Source: AGHT+IFk58c+ZgoN96sexKAE3jls9Q+Oz3AFzw+bH2VKnQ/3E4kkmZCnlgnvTttzYn2rT4ZRpXT6kA== X-Received: by 2002:ac2:465a:0:b0:515:920e:eecd with SMTP id s26-20020ac2465a000000b00515920eeecdmr1151838lfo.1.1712218447029; Thu, 04 Apr 2024 01:14:07 -0700 (PDT) Received: from localhost ([185.186.156.113]) by smtp.gmail.com with ESMTPSA id u20-20020a196a14000000b00516be925768sm388157lfu.292.2024.04.04.01.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:14:06 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Igor Opaniuk , Tom Rini Subject: [PATCH v4 2/5] cmd: optee_rpmb: close tee session Date: Thu, 4 Apr 2024 10:13:49 +0200 Message-Id: <20240404081352.3224643-3-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240404081352.3224643-1-igor.opaniuk@gmail.com> References: <20240404081352.3224643-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 Thu Apr 4 08:13: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: 1919666 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=fEUkwKHA; 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 4V9DtL6FYhz1yYn for ; Thu, 4 Apr 2024 19:14:34 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4C4AF883ED; Thu, 4 Apr 2024 10:14:13 +0200 (CEST) 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="fEUkwKHA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 87C33883EB; Thu, 4 Apr 2024 10:14:12 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 A6546883C6 for ; Thu, 4 Apr 2024 10:14:10 +0200 (CEST) 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-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2d85d0c61c7so323991fa.0 for ; Thu, 04 Apr 2024 01:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712218449; x=1712823249; 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=g2xJmeqV7J9yDPWcWLWnQojhOFW5Vl2ZjST8ffro7Ow=; b=fEUkwKHA81F+ID0RqOCmHMmVIkFCELp5Qa6ZPeqZH3cazI23W1CUQ1guQwfj8Pe88R lYmeVhrTCo5m+IAG9lUka4LN5inTqurlLObnJsVHOe3z9lCA6IaZOQnrETJGcD9mpcZq Te9GTJQbaUsG3lpPvw2nYJ3MonIBIpHsTVDEdYnhLU6oHb/w0oUHknoEIlSeURbTRN7r ECaLtJf2Z2/YmcrAmqeUz2tll2QSSl0HZzFk/D3on0er82uot0/PeCdhYVgFeimofr9v fkniaiQDbWVzYTRPU8CBQYi3H2hen5DJAt2ENf8aeJJVWDBSIv41vZ4ytVb9jrEp3rKP acUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712218449; x=1712823249; 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=g2xJmeqV7J9yDPWcWLWnQojhOFW5Vl2ZjST8ffro7Ow=; b=VPJJUHipoES6cPuJq5dXa8zos4PKfsmzM3UQ9sTx4bJiQv734VFKLCIwJStabHo7/t mxAIJ1HCzHKGT/tMHt2yXdUzQ/ENYMsjbFs4g1VHoxO41UjbO765jZIhcXjHlRyZchXx cKVad73FO1ERiG2SAXjV2EymrtvGWEGXya+iCvkxOK1lO3k3Ns8aKnKooLZM0CNSMeA7 ZG1NpPharTmqV/Xv5Bae33gyfPIuQXj8Mjt43NERv0/brRt8dRz7QJzDe/OoLjl5HFCi AYvFmzM/lDWJQsQp5t2IiWKJZW6dOiglAllOMpZ6+Hn9t9dzwdwHNUaj/47PkjCyXSyl bQVQ== X-Gm-Message-State: AOJu0YzhFbkgiDNhKwRFRKB074LrcHIr/t7BBnMQXGx9d3hXYLUdz+jS 5stDnS5aysfnoteGOcuPv7v6dYNdHnbwXaYQSz3GKJq0x86p3Mj7YS5hoFNp0GYZtA== X-Google-Smtp-Source: AGHT+IGjLjOi2YlzQnYQiFtSetmsaUUVuF8VcY2EFIY0dJSs+VgabSZVLB84uS+u+QVDoRU4NCV0ZQ== X-Received: by 2002:a2e:98cb:0:b0:2d8:270f:6a0a with SMTP id s11-20020a2e98cb000000b002d8270f6a0amr1274274ljj.4.1712218448744; Thu, 04 Apr 2024 01:14:08 -0700 (PDT) Received: from localhost ([185.186.156.113]) by smtp.gmail.com with ESMTPSA id u1-20020a05651c140100b002d69b9a6513sm2172564lje.48.2024.04.04.01.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:14:07 -0700 (PDT) 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 , Peter Robinson , Sean Edmond , Simon Glass , Tom Rini Subject: [PATCH v4 3/5] cmd: optee_rpmb: build cmd for sandbox Date: Thu, 4 Apr 2024 10:13:50 +0200 Message-Id: <20240404081352.3224643-4-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240404081352.3224643-1-igor.opaniuk@gmail.com> References: <20240404081352.3224643-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 61e280fb1a4..227d66a7eea 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1394,7 +1394,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 Thu Apr 4 08:13: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: 1919667 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=isT2bof7; 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 4V9DtY1hy2z1yYn for ; Thu, 4 Apr 2024 19:14:45 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C6E92883EB; Thu, 4 Apr 2024 10:14:15 +0200 (CEST) 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="isT2bof7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 95AED883FB; Thu, 4 Apr 2024 10:14:14 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (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 B6E7E883C6 for ; Thu, 4 Apr 2024 10:14:12 +0200 (CEST) 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-lf1-x129.google.com with SMTP id 2adb3069b0e04-513e2373ef7so162090e87.1 for ; Thu, 04 Apr 2024 01:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712218451; x=1712823251; 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=isT2bof7KXCIYdnRTWITv2nobXVgfZ9Qn3p6L854/uzXHmWsAuuawuJRVt3QqG4p/h OgSujSwbTvb0SWJX33+11H2rYG9xOGCpbJ7OyW5pOhknNaNpBvQd5E3shg4oXP0NaCoT BaoSkK6AFqAdXcRrEiDa3ZtZA/KVoGNi679GNL+T9kTDY1p8bmv/KWVT7e0Gr+oFwTrY CXFZGlVss7Bz/EBZISSSj3TXcML4Zl2zz1xbdOL/5zCTggqEKbPExoZpx5Poh+M8PLjI CfqmQT8th1DrWJv5JUEB06Nc0c6gM5w/lFuPq5jzzLZnnxsORM2wrsoqUt1jPzmx9anD 9KOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712218451; x=1712823251; 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=VFKzuXHnKG85Ta7uypcsef4R+GRjgB+y04sTQMXKpqmY8RSKdEwSYyRyd97bhxnTZ1 qW0SFy8jMO5CMxuC+pkmiC38EBt+frsXGrr8MN7z/hJoQQNRAlSSv6i72PxnagqfcSM3 l5OnAjBT7mC/SBV2MAn63Vc35CGZW43NW0S7F/TdYZN2kDUeTNVz3qIZMlMU8A7e8/Zl 7k5/vVE4neN59MlCipdOZOJcvVvma8XkNSFbrDVl3FHYIb+clsnxq0bTaXNgoE3/mL+G Ydrv/KlgTZ4vGs/NTzAkyMgl+aAPklhsgiAbPNK57LIN5dFAGqqfXpmHUROv5ly/WG3Y Kg5w== X-Gm-Message-State: AOJu0Yy+gc5NuubJw/iWEpuHBMujMqj53sZ+fxGZ9o3+PCnvSIvtla/y HC8XVX30koq+V7E6qUWDkSEuPiPcrpvuO5YSXSxI8TnHtfxaW6ZgZi0pnOrLTwvNsg== X-Google-Smtp-Source: AGHT+IG/TI1g+KaefDY3ycd1gGWRJebm6V/D7eT5KW8p/8jQQu/lOS1MWWA3kBNO8XcZw3hEUyzvow== X-Received: by 2002:a05:6512:78d:b0:513:ec32:aa89 with SMTP id x13-20020a056512078d00b00513ec32aa89mr1099231lfr.2.1712218451271; Thu, 04 Apr 2024 01:14:11 -0700 (PDT) Received: from localhost ([185.186.156.113]) by smtp.gmail.com with ESMTPSA id a17-20020ac25051000000b00515a9d5aad1sm2223747lfm.116.2024.04.04.01.14.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:14:09 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Igor Opaniuk , Tom Rini Subject: [PATCH v4 4/5] test: py: add optee_rpmb tests Date: Thu, 4 Apr 2024 10:13:51 +0200 Message-Id: <20240404081352.3224643-5-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240404081352.3224643-1-igor.opaniuk@gmail.com> References: <20240404081352.3224643-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 Thu Apr 4 08:13: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: 1919668 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=iK3+/uhM; 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 4V9Dtl1zcyz1yYn for ; Thu, 4 Apr 2024 19:14:55 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3FFBF88404; Thu, 4 Apr 2024 10:14:17 +0200 (CEST) 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="iK3+/uhM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7FCC9883FC; Thu, 4 Apr 2024 10:14:16 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (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 75744883DD for ; Thu, 4 Apr 2024 10:14:14 +0200 (CEST) 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-lf1-x12c.google.com with SMTP id 2adb3069b0e04-516ce8b2486so52861e87.1 for ; Thu, 04 Apr 2024 01:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712218453; x=1712823253; 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=GNmT5vFa+RtUpJlbQrpNeWzXC7oMpaPjY7wZ9ximqhI=; b=iK3+/uhMKqeBoEVlEzR3Y4M+sltsAwhtVTH+gtBJfJyX58CFaDoyWI/D8RlxkV2Js2 p6MsNBEgCnmdrqGR49f5pseUjZM4zAyicP4uLSL0Nj1Nr+ph0LPyCWC742axPRsGSDPr z9f/KllT6vU4Rs9hHC3NPbnkcndl3ZmnD+8+zRhD5+IBK0e5NbJdCm2zKYqhNhRNSanI sjEhdOsYZsghpz8X4Zv1O1MS/Yjdf2KQhY60xz2qhU8YbU5esvrZwfJeR/I8hzlVQSdl WMXabqLXs9Rs2okjtaG/yvcUUH35vxVLEWvjepdcF/YiikYWUTVNr+QjzjDmbZ7pFfiZ cjXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712218453; x=1712823253; 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=GNmT5vFa+RtUpJlbQrpNeWzXC7oMpaPjY7wZ9ximqhI=; b=Nvqv+tuI/xqdkH1CcaEMIbJdi2yuf49yTA3I/bD0n0TWd2+JuADJZ5og4852EbHadO 8mHManUZNtcYOEPvtvHnuM4zhUhEXm6OfE3imkoQNPzVhwPmTpX+TpuTFBXKSxnrssa+ Rd6IivNPppsgeZJpL8Pn4RoKSdMAcA0tzmdbw0bA4UgU/WLVPakAZBObvF3ddhbQrs3R Fp8KgSyvvvGMy3IqxWfLFvL+3+Y0Q5f3PQ1+4za2BcH0uoY7w/HVylvY/fwIityvVh7h DGkGm3Dmzil3i5XW+Lmn8yU+aAHcQWnzlBh+53Te7yf0aKLlgqGyd9ZSBuicmljI2U74 t56g== X-Gm-Message-State: AOJu0YyLQdYlKKK63vdepG206xgiwCrRxC6iLbnODWf/K0fKdiigUSSY KdwhvhC60eanOKqVAtlOHiQB9i6zXTHsfL5RHccwSaOhOukWspZvnbgPLZJi9CgVsw== X-Google-Smtp-Source: AGHT+IFnQjFzP8OM7zrUT4CBZCoJ2Rd1XcAAwDodv+/ZUtiQtOuYEpEQi7NnNXMAPBpUnZbw69HMOg== X-Received: by 2002:ac2:4c19:0:b0:513:c428:9daa with SMTP id t25-20020ac24c19000000b00513c4289daamr1066587lfq.0.1712218453061; Thu, 04 Apr 2024 01:14:13 -0700 (PDT) Received: from localhost ([185.186.156.113]) by smtp.gmail.com with ESMTPSA id z7-20020ac25de7000000b00515bb998006sm2211777lfq.67.2024.04.04.01.14.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:14:12 -0700 (PDT) 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 v4 5/5] tee: remove common.h inclusion Date: Thu, 4 Apr 2024 10:13:52 +0200 Message-Id: <20240404081352.3224643-6-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240404081352.3224643-1-igor.opaniuk@gmail.com> References: <20240404081352.3224643-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 --- (no changes since v3) Changes in v3: - Added calls for closing tee session after every read/write operation - Added calls for closing tee session after every read/write operation Changes in v2: - Fixed chimp_optee.c:37:9: error: implicit declaration of function 'memset' - Applied R-b and T-b tags - 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