linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/6] Drivers for Loongson security engine
@ 2025-04-03  2:46 Qunqin Zhao
  2025-04-03  2:46 ` [PATCH v7 1/6] mfd: Add support for Loongson Security Module Qunqin Zhao
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Qunqin Zhao @ 2025-04-03  2:46 UTC (permalink / raw)
  To: lee, herbert, davem, peterhuewe, jarkko
  Cc: linux-kernel, loongarch, linux-crypto, jgg, linux-integrity,
	pmenzel, Qunqin Zhao

Loongson security engine supports random number generation, hash,
symmetric encryption and asymmetric encryption. Based on these
encryption functions, TPM2 have been implemented in it.

mfd is the baser driver, crypto and tpm are users.

v7: Addressed Huacai's comments.

v6: mfd :MFD_LS6000SE -> MFD_LOONGSON_SE,  ls6000se.c -> loongson-se.c

    crypto :CRYPTO_DEV_LS6000SE_RNG -> CRYPTO_DEV_LOONGSON_RNG,
    ls6000se-rng.c ->loongson-rng.c

    tpm: TCG_LSSE -> TCG_LOONGSON, tpm_lsse.c ->tpm_loongson.c

v5: Registered "ls6000se-rng" device in mfd driver.
v4: Please look at changelog in tpm and MAINTAINERS. No changes to mfd
    and crypto.
v3: Put the updates to the MAINTAINERS in a separate patch.
v2: Removed misc driver. Added tpm driver.


Qunqin Zhao (6):
  mfd: Add support for Loongson Security Module
  MAINTAINERS: Add entry for Loongson Security Module driver
  crypto: loongson - add Loongson RNG driver support
  MAINTAINERS: Add entry for Loongson RNG driver
  tpm: Add a driver for Loongson TPM device
  MAINTAINERS: Add tpm_loongson.c to LOONGSON CRYPTO DRIVER entry

 MAINTAINERS                            |  14 +
 drivers/char/tpm/Kconfig               |   9 +
 drivers/char/tpm/Makefile              |   1 +
 drivers/char/tpm/tpm_loongson.c        | 103 +++++++
 drivers/crypto/Kconfig                 |   1 +
 drivers/crypto/Makefile                |   1 +
 drivers/crypto/loongson/Kconfig        |   6 +
 drivers/crypto/loongson/Makefile       |   2 +
 drivers/crypto/loongson/loongson-rng.c | 190 +++++++++++++
 drivers/mfd/Kconfig                    |  10 +
 drivers/mfd/Makefile                   |   2 +
 drivers/mfd/loongson-se.c              | 374 +++++++++++++++++++++++++
 include/linux/mfd/loongson-se.h        |  75 +++++
 13 files changed, 788 insertions(+)
 create mode 100644 drivers/char/tpm/tpm_loongson.c
 create mode 100644 drivers/crypto/loongson/Kconfig
 create mode 100644 drivers/crypto/loongson/Makefile
 create mode 100644 drivers/crypto/loongson/loongson-rng.c
 create mode 100644 drivers/mfd/loongson-se.c
 create mode 100644 include/linux/mfd/loongson-se.h


base-commit: b904243247d1acb0ebbd4978feb639441dc51fc1
-- 
2.45.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-04-08 12:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03  2:46 [PATCH v7 0/6] Drivers for Loongson security engine Qunqin Zhao
2025-04-03  2:46 ` [PATCH v7 1/6] mfd: Add support for Loongson Security Module Qunqin Zhao
2025-04-04 16:06   ` Lee Jones
2025-04-07  7:53     ` Qunqin Zhao
2025-04-03  2:46 ` [PATCH v7 2/6] MAINTAINERS: Add entry for Loongson Security Module driver Qunqin Zhao
2025-04-03  2:46 ` [PATCH v7 3/6] crypto: loongson - add Loongson RNG driver support Qunqin Zhao
2025-04-06  9:05   ` Huacai Chen
2025-04-08 12:07     ` Qunqin Zhao
2025-04-07  4:04   ` Herbert Xu
2025-04-08 12:06     ` Qunqin Zhao
2025-04-03  2:46 ` [PATCH v7 4/6] MAINTAINERS: Add entry for Loongson RNG driver Qunqin Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).