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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 01CAFC53219 for ; Wed, 29 Jul 2026 04:55:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B8FF960A9A; Wed, 29 Jul 2026 04:55:37 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Xy8AyJ2m68ij; Wed, 29 Jul 2026 04:55:36 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org CE95660A8E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org ; s=default; t=1785300936; bh=nqlHniaNzSC/qOv4KBGMd+0w8dZ2olMhTr1RXlmQ48c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=1JMd+yp9n119DRc/xYoBRngtNZvTlGuHbHb1nnTD9sqT14SEBCjlhxk4t2lEmHN1W LDNop/YBKOjBFcBlbEcp68oOXV1wT0zL1n1+0yq8zVl/mqKfoxi2lWHW1XV/BIAFnW bQWfqfTr+RkLiR1frXRRvIsnPf/Ni3sEulZ4zCZSe203CpDU4r9xSP4x8cs/Dvfa55 IKxJJYsZ+TGZgCRKOr1ek91fLcOQY+o5gm+KcLYUt7MCrNqueepFjcCaqSIqRpsU2X a6QJFMBnQSbzXw8Sq+sDBa3fVy/gypk64fSJZH9MECLvmRw+R/j6qCEzcSVaA3KlIx JT/seu3CbkyuA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id CE95660A8E; Wed, 29 Jul 2026 04:55:35 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists1.osuosl.org (Postfix) with ESMTP id 4FD34788 for ; Tue, 28 Jul 2026 17:44:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3695D40364 for ; Tue, 28 Jul 2026 17:44:01 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id vsMQhILXxGJJ for ; Tue, 28 Jul 2026 17:44:00 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::332; helo=mail-ot1-x332.google.com; envelope-from=james.hilliard1@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 4EB7540029 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 4EB7540029 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by smtp2.osuosl.org (Postfix) with ESMTPS id 4EB7540029 for ; Tue, 28 Jul 2026 17:44:00 +0000 (UTC) Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-7e9eaf04bfaso70248a34.1 for ; Tue, 28 Jul 2026 10:44:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785260639; x=1785865439; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content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KKi19R2JxpCoO WycoGzYeYAfJPgA3+2BDUJQawFIrUqayKsH53/yB6eAK2/AVlWKg1/1JQc8+uL5quNbDH4angln 0yPRccapIpG5F41iwahLiTUEPG/2u5OpeIVw5C+BNE0tkyUS49o7BVE X-Received: by 2002:a05:6830:67fd:b0:7ec:6512:ee12 with SMTP id 46e09a7af769-7effeeeb672mr2850797a34.12.1785260639040; Tue, 28 Jul 2026 10:43:59 -0700 (PDT) Received: from [127.0.1.1] (71-218-31-69.hlrn.qwest.net. [71.218.31.69]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7f00d94389dsm271103a34.21.2026.07.28.10.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 10:43:58 -0700 (PDT) From: James Hilliard Date: Tue, 28 Jul 2026 11:41:45 -0600 Subject: [PATCH v6 02/13] crypto: aes: allow DM AES in SPL MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260728-submit-ce-series-v2-v6-2-80c1f7daffa5@gmail.com> References: <20260728-submit-ce-series-v2-v6-0-80c1f7daffa5@gmail.com> In-Reply-To: <20260728-submit-ce-series-v2-v6-0-80c1f7daffa5@gmail.com> To: Svyatoslav Ryhel , Ion Agorria , Aspeed BMC SW team , Joel Stanley , u-boot@lists.u-boot-project.org Cc: Chen-Yu Tsai , Samuel Holland , Tom Rini , Simon Glass , James Hilliard , Thierry Reding , Quentin Schulz , Quentin Schulz , Marek Vasut , Marek Vasut , Rasmus Villemoes , Rasmus Villemoes , Aristo Chen , Anton Ivanov , Daniel Golle , Francois Berder , Peng Fan , Neil Armstrong , Randolph Sapp , Jonas Karlman , Wolfgang Wallner , Alexey Charkov , Ilias Apalodimas , Heiko Schocher , "Kory Maincent (TI.com)" , Anshul Dalal , Johan Jonker , Francesco Valla , Heinrich Schuchardt , Michael Walle , Andre Przywara , Lukasz Majewski , Richard Genoud , Michael Trimarchi , E Shattow , Enric Balletbo i Serra , Mattijs Korpershoek , Lucas Dietrich , David Lechner , Julien Stephan , Kuan-Wei Chiu , Bastien Curutchet , Raymond Mao , Ryan Chen , Chia-Wei Wang , "Lucien.Jheng" , Mateusz Furdyna , Dinesh Maniyam , Heiko Stuebner , Vincent Jardin X-Mailer: b4 0.15.2 X-Mailman-Approved-At: Wed, 29 Jul 2026 04:55:22 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785260639; x=1785865439; darn=lists.u-boot-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nqlHniaNzSC/qOv4KBGMd+0w8dZ2olMhTr1RXlmQ48c=; b=JJOH8ZheXNNOc9DMP73jvyeh0rmK5VYoHjIS7ii7wnq+rnR0mjlrr9NjQg7OwegnIt iaaUn0HEGLPFpCChS6K5Vl63S+loJWt5a1L82fPFJfgfdB+GUyDLDWTp9lJxTCh2kS00 MlrJmBVNbPNKieAqMGEeeggsORS85CweYpleW8KBsLhFA68k6I7/r/PAV8241L6l+6VL Zhnx7LGRBgqyHkb3ORj4DTktDcsukHQ6lX4rfkuKa9vvXohegRnZ37QVKZYeAcxgpY86 K+9v2hNbJFaBWezuGpg3hoEt2RVy1ZnIMoyqoxN1zLZ7e6gguJgNug9tazZDzqbacv3O cziw== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=JJOH8Zhe X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.u-boot-project.org Sender: "U-Boot" The AES uclass Makefile is already keyed by CONFIG_$(PHASE_)DM_AES, but there is no SPL_DM_AES symbol to build it for SPL. Add the SPL variant so SPL code can use UCLASS_AES providers, for example when decrypting FIT images before loading U-Boot proper. Select SPL_CRYPTO from SPL_DM_AES as well, since drivers/Makefile only descends into drivers/crypto/ for SPL when SPL_CRYPTO is enabled. Reviewed-by: Simon Glass Reviewed-by: Tom Rini Signed-off-by: James Hilliard --- Changes v1 -> v2: - Select SPL_CRYPTO from SPL_DM_AES (suggested by Simon Glass) --- drivers/crypto/aes/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/crypto/aes/Kconfig b/drivers/crypto/aes/Kconfig index 7e1b1b2875d..254cb598568 100644 --- a/drivers/crypto/aes/Kconfig +++ b/drivers/crypto/aes/Kconfig @@ -4,6 +4,14 @@ config DM_AES help If you want to use driver model for AES crypto operations, say Y. +config SPL_DM_AES + bool "Enable Driver Model for AES crypto operations in SPL" + depends on SPL_DM + select SPL_CRYPTO + help + If you want to use driver model for AES crypto operations in SPL, + say Y. + config AES_SOFTWARE bool "Enable driver for AES in software" depends on DM_AES && AES -- 2.53.0