From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8661C433FE for ; Thu, 4 Nov 2021 14:15:48 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38BEC611C3 for ; Thu, 4 Nov 2021 14:15:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 38BEC611C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EBFFD836D7; Thu, 4 Nov 2021 15:15: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=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="Wo8UUm4v"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CDF21836CA; Thu, 4 Nov 2021 15:15:11 +0100 (CET) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 770B4836BA for ; Thu, 4 Nov 2021 15:15:02 +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=etienne.carriere@linaro.org Received: by mail-wr1-x430.google.com with SMTP id d13so8852612wrf.11 for ; Thu, 04 Nov 2021 07:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=t/9c8YlPwdiUpJXUeIXjuzdJhRHwX29nVuyu/8jcmOM=; b=Wo8UUm4vKK9OvJOpUk5r+2WdgbqgTL4bimiW1qtPUuM7VtfrOrNSAMO5Z207yOjXPI wRzzZfUWF4AqI4IT8puL0RRB0E4Zus01c/cLVsRV/KgInPlhqMeTrtslsr+T1tDVPolF bhVyuFM10kkguZhw3D+8lWY5rqyKDsPHSCorq4tbK8ojBgCq0KjHjrWRueOpdvvI8zqT i9tssuClGtF8elIfefBv8Mj4yjyHbxdvoAA16NbbxUDlzT5e/DxssUPcpwaniuSkSUVL wBcPB+yBLjOWtnfMHqKQuekPlPwNo8PdhNK3zpByX3Ftux6ZfUFs5mHZscmsO3hpsycy 0+Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=t/9c8YlPwdiUpJXUeIXjuzdJhRHwX29nVuyu/8jcmOM=; b=p5Lw8pPRE1xJqJX678qIKm+vb6IVGlQbZ1ONxjhf4/LQKaJTFg6IGajJKB6PBDcPVH agP8Ki1rEzTYcIYmsT7O71G2jw4BFUUcVzDTHXqLNmIRG/CAycHgNPkm0enVEl/ufGEQ ssHCR15j6uOs7Xlc5bv52Ewgj1vzPT4UHvl7J/Z10T6PBwX+MmT2HMayKyW3Vjw0EJk0 LY+4CzQ+nRW6Jlc225mkK0/P7CjvGnlrVXoeK+T9zoOsXvFPloJdv6iI8rfyAuR6TKar dafyVh2dMyWlIWBmBYkPWJZ89YUMM4b/ErPwn+ZDkg2iw3ihmkV7nbl2RmxciCa0Xbnj cVyA== X-Gm-Message-State: AOAM530Ho5gKh9Gjo1v/MfHxa6U8wXLhEiIhf6ammUUmrlb0khf9PlCH R7jlDx04JImW6kHJ4XDL2WxrID4rPoaNxA== X-Google-Smtp-Source: ABdhPJz6Cvolg8k5tfBEMRQHH6CCutvv+q1H/GnoS9g0NyoOhG/k6JcTnuPyaFo68CxoAjz93BcHrA== X-Received: by 2002:a5d:49c3:: with SMTP id t3mr47479232wrs.207.1636035301733; Thu, 04 Nov 2021 07:15:01 -0700 (PDT) Received: from lmecxl0524.lme.st.com ([2a04:cec0:10b3:52ee:40ee:3a6f:5eb8:bd35]) by smtp.gmail.com with ESMTPSA id l26sm5354862wms.15.2021.11.04.07.15.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 07:15:01 -0700 (PDT) From: Etienne Carriere To: u-boot@lists.denx.de Cc: Etienne Carriere , Jens Wiklander Subject: [PATCH 3/5] tee: optee: define TEE error code TEE_ERROR_SHORT_BUFFER Date: Thu, 4 Nov 2021 15:14:49 +0100 Message-Id: <20211104141451.29967-3-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211104141451.29967-1-etienne.carriere@linaro.org> References: <20211104141451.29967-1-etienne.carriere@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Adds TEE_ERROR_SHORT_BUFFER as TEE error code. This error code is commonly used by TEEs to inform caller that the buffer(s) it provided is too small for the desired operation. Cc: Jens Wiklander Signed-off-by: Etienne Carriere --- include/tee.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/tee.h b/include/tee.h index 30ea2ee164..50051496ae 100644 --- a/include/tee.h +++ b/include/tee.h @@ -64,6 +64,7 @@ #define TEE_ERROR_NOT_SUPPORTED 0xffff000a #define TEE_ERROR_COMMUNICATION 0xffff000e #define TEE_ERROR_SECURITY 0xffff000f +#define TEE_ERROR_SHORT_BUFFER 0xffff0010 #define TEE_ERROR_OUT_OF_MEMORY 0xffff000c #define TEE_ERROR_OVERFLOW 0xffff300f #define TEE_ERROR_TARGET_DEAD 0xffff3024 -- 2.17.1