mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Louvel <paul.louvel@bootlin.com>
To: Herbert Xu <herbert@gondor.apana.org.au>,
	 "David S. Miller" <davem@davemloft.net>
Cc: Paul Louvel <paul.louvel@bootlin.com>,
	linux-crypto@vger.kernel.org,  linux-kernel@vger.kernel.org,
	 Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	 Christophe Leroy <chleroy@kernel.org>,
	 "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
Subject: [PATCH v7 02/20] crypto: talitos - Move driver into dedicated directory
Date: Wed, 23 Sep 2026 17:18:38 +0200	[thread overview]
Message-ID: <20260923-7-3-rc2_talitos_cleanup-v7-2-9a45261fc097@bootlin.com> (raw)
In-Reply-To: <20260923-7-3-rc2_talitos_cleanup-v7-0-9a45261fc097@bootlin.com>

Move the talitos driver files from drivers/crypto/ into
drivers/crypto/talitos/ to accommodate upcoming code
reorganization.

Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Signed-off-by: Paul Louvel <paul.louvel@bootlin.com>
---
 drivers/crypto/Kconfig                             | 38 +---------------------
 drivers/crypto/Makefile                            |  2 +-
 drivers/crypto/talitos/Kconfig                     | 36 ++++++++++++++++++++
 drivers/crypto/talitos/Makefile                    |  3 ++
 .../crypto/{talitos.c => talitos/talitos-core.c}   |  0
 drivers/crypto/{ => talitos}/talitos.h             |  0
 6 files changed, 41 insertions(+), 38 deletions(-)

diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 0189dfdcbbe1..13f09805851c 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -253,43 +253,7 @@ config CRYPTO_DEV_HIFN_795X_RNG
 	  on the HIFN 795x crypto adapters.
 
 source "drivers/crypto/caam/Kconfig"
-
-config CRYPTO_DEV_TALITOS
-	tristate "Talitos Freescale Security Engine (SEC)"
-	select CRYPTO_AEAD
-	select CRYPTO_AUTHENC
-	select CRYPTO_SKCIPHER
-	select CRYPTO_HASH
-	select CRYPTO_LIB_DES
-	select HW_RANDOM
-	depends on FSL_SOC
-	help
-	  Say 'Y' here to use the Freescale Security Engine (SEC)
-	  to offload cryptographic algorithm computation.
-
-	  The Freescale SEC is present on PowerQUICC 'E' processors, such
-	  as the MPC8349E and MPC8548E.
-
-	  To compile this driver as a module, choose M here: the module
-	  will be called talitos.
-
-config CRYPTO_DEV_TALITOS1
-	bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
-	depends on CRYPTO_DEV_TALITOS
-	depends on PPC_8xx || PPC_82xx
-	default y
-	help
-	  Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
-	  found on MPC82xx or the Freescale Security Engine (SEC Lite)
-	  version 1.2 found on MPC8xx
-
-config CRYPTO_DEV_TALITOS2
-	bool "SEC2+ (SEC version 2.0 or upper)"
-	depends on CRYPTO_DEV_TALITOS
-	default y if !PPC_8xx
-	help
-	  Say 'Y' here to use the Freescale Security Engine (SEC)
-	  version 2 and following as found on MPC83xx, MPC85xx, etc ...
+source "drivers/crypto/talitos/Kconfig"
 
 config CRYPTO_DEV_PPC4XX
 	tristate "Driver AMCC PPC4xx crypto accelerator"
diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile
index 2c33b83f3cfa..e9522e94c20d 100644
--- a/drivers/crypto/Makefile
+++ b/drivers/crypto/Makefile
@@ -33,7 +33,7 @@ obj-$(CONFIG_CRYPTO_DEV_SA2UL) += sa2ul.o
 obj-$(CONFIG_CRYPTO_DEV_SAHARA) += sahara.o
 obj-$(CONFIG_CRYPTO_DEV_SL3516) += gemini/
 obj-y += stm32/
-obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o
+obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos/
 obj-$(CONFIG_CRYPTO_DEV_TEGRA) += tegra/
 obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio/
 obj-$(CONFIG_CRYPTO_DEV_BCM_SPU) += bcm/
diff --git a/drivers/crypto/talitos/Kconfig b/drivers/crypto/talitos/Kconfig
new file mode 100644
index 000000000000..c3470553a966
--- /dev/null
+++ b/drivers/crypto/talitos/Kconfig
@@ -0,0 +1,36 @@
+config CRYPTO_DEV_TALITOS
+	tristate "Talitos Freescale Security Engine (SEC)"
+	select CRYPTO_AEAD
+	select CRYPTO_AUTHENC
+	select CRYPTO_SKCIPHER
+	select CRYPTO_HASH
+	select CRYPTO_LIB_DES
+	select HW_RANDOM
+	depends on FSL_SOC
+	help
+	  Say 'Y' here to use the Freescale Security Engine (SEC)
+	  to offload cryptographic algorithm computation.
+
+	  The Freescale SEC is present on PowerQUICC 'E' processors, such
+	  as the MPC8349E and MPC8548E.
+
+	  To compile this driver as a module, choose M here: the module
+	  will be called talitos.
+
+config CRYPTO_DEV_TALITOS1
+	bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
+	depends on CRYPTO_DEV_TALITOS
+	depends on PPC_8xx || PPC_82xx
+	default y
+	help
+	  Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
+	  found on MPC82xx or the Freescale Security Engine (SEC Lite)
+	  version 1.2 found on MPC8xx
+
+config CRYPTO_DEV_TALITOS2
+	bool "SEC2+ (SEC version 2.0 or upper)"
+	depends on CRYPTO_DEV_TALITOS
+	default y if !PPC_8xx
+	help
+	  Say 'Y' here to use the Freescale Security Engine (SEC)
+	  version 2 and following as found on MPC83xx, MPC85xx, etc ...
diff --git a/drivers/crypto/talitos/Makefile b/drivers/crypto/talitos/Makefile
new file mode 100644
index 000000000000..98456167fe73
--- /dev/null
+++ b/drivers/crypto/talitos/Makefile
@@ -0,0 +1,3 @@
+obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o
+
+talitos-y += talitos-core.o
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos/talitos-core.c
similarity index 100%
rename from drivers/crypto/talitos.c
rename to drivers/crypto/talitos/talitos-core.c
diff --git a/drivers/crypto/talitos.h b/drivers/crypto/talitos/talitos.h
similarity index 100%
rename from drivers/crypto/talitos.h
rename to drivers/crypto/talitos/talitos.h

-- 
2.55.0


  parent reply	other threads:[~2026-09-23 15:19 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-23 15:18 [PATCH v7 00/20] crypto: talitos - Driver cleanup Paul Louvel
2026-09-23 15:18 ` [PATCH v7 01/20] crypto: talitos/hash - Use CRYPTO_AHASH_BLOCK_ONLY API Paul Louvel
2026-09-23 15:18 ` Paul Louvel [this message]
2026-09-23 15:18 ` [PATCH v7 03/20] crypto: talitos - Add missing includes to driver header file Paul Louvel
2026-09-23 15:18 ` [PATCH v7 04/20] crypto: talitos/hwrng - Move into separate file Paul Louvel
2026-09-23 15:18 ` [PATCH v7 05/20] crypto: talitos - Prepare crypto implementation file splitting Paul Louvel
2026-09-23 15:18 ` [PATCH v7 06/20] crypto: talitos/hash - Move into separate file Paul Louvel
2026-09-23 15:18 ` [PATCH v7 07/20] crypto: talitos/skcipher " Paul Louvel
2026-09-23 15:18 ` [PATCH v7 08/20] crypto: talitos/aead " Paul Louvel
2026-09-23 15:18 ` [PATCH v7 09/20] crypto: talitos/hash - Convert to {init,exit}_tfm type-specific API Paul Louvel
2026-09-23 15:18 ` [PATCH v7 10/20] crypto: talitos/skcipher " Paul Louvel
2026-09-23 15:18 ` [PATCH v7 11/20] crypto: talitos/aead " Paul Louvel
2026-09-23 15:18 ` [PATCH v7 12/20] crypto: talitos - Remove alg settings in talitos_register_common() Paul Louvel
2026-09-23 15:18 ` [PATCH v7 13/20] crypto: talitos/hash - Use macro for algorithm definitions Paul Louvel
2026-09-23 15:18 ` [PATCH v7 14/20] crypto: talitos/skcipher " Paul Louvel
2026-09-23 15:18 ` [PATCH v7 15/20] crypto: talitos/aead " Paul Louvel
2026-09-23 15:18 ` [PATCH v7 16/20] crypto: talitos - Introduce is_sec1() helper with static key support Paul Louvel
2026-09-23 15:18 ` [PATCH v7 17/20] crypto: talitos - Replace has_ftr_sec1() with is_sec1() static key helper Paul Louvel
2026-09-23 15:18 ` [PATCH v7 18/20] crypto: talitos - Introduce per-SEC-version descriptor and pointer structures Paul Louvel
2026-09-23 15:18 ` [PATCH v7 19/20] crypto: talitos - Remove TALITOS_DESC_SIZE macro Paul Louvel
2026-09-23 15:18 ` [PATCH v7 20/20] MAINTAINERS: add entry for talitos driver Paul Louvel
2026-10-02  7:27 ` [PATCH v7 00/20] crypto: talitos - Driver cleanup Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260923-7-3-rc2_talitos_cleanup-v7-2-9a45261fc097@bootlin.com \
    --to=paul.louvel@bootlin.com \
    --cc=chleroy@kernel.org \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®