Re: [PATCH] crypto: inside-secure - remove crc32 support
From: Eric Biggers
Date: Sun Jun 08 2025 - 19:41:48 EST
On Sat, May 31, 2025 at 01:42:44PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
>
> The crc32 acceleration in the inside-secure driver is accessible only as
> an asynchronous hash. However, there seems to be no corresponding user
> of crc32 in the kernel that supports asynchronous hashes. Therefore,
> this code seems to be unused.
>
> The patch that added this code provided no justification for its
> inclusion. All devicetree bindings for this accelerator are for arm64;
> arm64 CPUs often have CRC or PMULL instructions, which already
> accelerate crc32 very well. And these actually work with the crc32
> users in the kernel, unlike this driver which doesn't.
>
> Remove this unnecessary code.
>
> Cc: Antoine Tenart <atenart@xxxxxxxxxx>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
>
> I'm planning to take this patch via the crc tree.
>
> drivers/crypto/inside-secure/safexcel.c | 1 -
> drivers/crypto/inside-secure/safexcel.h | 1 -
> drivers/crypto/inside-secure/safexcel_hash.c | 92 +-------------------
> 3 files changed, 2 insertions(+), 92 deletions(-)
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=crc-next
- Eric