mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-18 01:27:40 +00:00

Remove the crc32 and crc32c support from the stm32 driver. Since it's not wired up to the CRC library, almost no CRC user in the kernel can actually be taking advantage of it, so it's effectively dead code. Support for this hardware could be migrated to the CRC library, but there doesn't seem to be much point. This CRC engine is present only on a couple older SoCs that lacked CRC instructions. Even for those SoCs, it probably wouldn't be worthwhile. This driver has to deal with things like locking and runtime power management that do not exist in software CRC code and are a source of bugs (as is clear from the commit log) and add significant overhead to the processing of short messages, which are common. The patch that added this driver seemed to justify it based purely on a microbenchmark on Cortex-M7 on long messages, not a real use case. These days, if this driver were to be used at all it would likely be on Cortex-A7 instead. This CRC engine is also not supported by QEMU, making the driver not easily testable. Acked-by: Ard Biesheuvel <ardb@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Cc: Alexandre Torgue <alexandre.torgue@foss.st.com> Cc: Fabien Dessenne <fabien.dessenne@foss.st.com> Cc: Lionel Debieve <lionel.debieve@foss.st.com> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com> Cc: linux-stm32@st-md-mailman.stormreply.com Link: https://lore.kernel.org/r/20250601193441.6913-1-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
26 lines
740 B
Plaintext
26 lines
740 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config CRYPTO_DEV_STM32_HASH
|
|
tristate "Support for STM32 hash accelerators"
|
|
depends on ARCH_STM32 || ARCH_U8500
|
|
depends on HAS_DMA
|
|
select CRYPTO_HASH
|
|
select CRYPTO_MD5
|
|
select CRYPTO_SHA1
|
|
select CRYPTO_SHA256
|
|
select CRYPTO_SHA512
|
|
select CRYPTO_SHA3
|
|
select CRYPTO_ENGINE
|
|
help
|
|
This enables support for the HASH hw accelerator which can be found
|
|
on STMicroelectronics STM32 SOC.
|
|
|
|
config CRYPTO_DEV_STM32_CRYP
|
|
tristate "Support for STM32 cryp accelerators"
|
|
depends on ARCH_STM32 || ARCH_U8500
|
|
select CRYPTO_HASH
|
|
select CRYPTO_ENGINE
|
|
select CRYPTO_LIB_DES
|
|
help
|
|
This enables support for the CRYP (AES/DES/TDES) hw accelerator which
|
|
can be found on STMicroelectronics STM32 SOC.
|