[PATCH v4 0/2] crypto: hisilicon - Add HiSilicon ADVCA Subsystem

From: David Yang
Date: Tue Jun 06 2023 - 03:12:23 EST


HiSilicon ADVCA Subsystem contains various cryptographic devices, including
symmetric key ciphers, hash functions, RSA algorithms, as well as key
ladder and OTP memory.

This series adds symmetric key cipher and SHA algorithm family driver.

This series is based on Hi3798Mv100.

v2: sorry, I accidentally skipped v1.
v3:
* use devm_reset_control_get_optional_exclusive
* disable clocks if init failed
* put device reset when removal
* implement import function for sha device
* fix typo reported by test bot
v4: fix sparse warnings

David Yang (2):
crypto: hisilicon - Add HiSilicon ADVCA Subsystem
crypto: hisilicon/advca - Add SHA support

drivers/crypto/hisilicon/Kconfig | 11 +
drivers/crypto/hisilicon/Makefile | 1 +
drivers/crypto/hisilicon/advca/Makefile | 2 +
.../crypto/hisilicon/advca/hisi-advca-muc.c | 1530 +++++++++++++++++
.../crypto/hisilicon/advca/hisi-advca-sha.c | 659 +++++++
5 files changed, 2203 insertions(+)
create mode 100644 drivers/crypto/hisilicon/advca/Makefile
create mode 100644 drivers/crypto/hisilicon/advca/hisi-advca-muc.c
create mode 100644 drivers/crypto/hisilicon/advca/hisi-advca-sha.c


base-commit: f8dba31b0a826e691949cd4fdfa5c30defaac8c5
--
2.39.2