mbox series

[v3,0/4] crypto: stm32/cryp - Improve stm32-cryp driver

Message ID 20240528140548.1632562-1-maxime.mere@foss.st.com (mailing list archive)
Headers show
Series crypto: stm32/cryp - Improve stm32-cryp driver | expand

Message

Maxime MERE May 28, 2024, 2:05 p.m. UTC
From: Maxime Méré <maxime.mere@foss.st.com>

This series of patches mainly aims to improve the usage of DMA with the
CRYP peripheral of the STM32 MPU series. The other two patches are
needed to enhance the driver's visibility for ST platforms.

This patchset version 3 addresses the issues identified by Herbert.
The code that raised a warning was in fact useless as there is already
an overflow check in the "stm32_cryp_dma_check" function so I removed
it.

I've also added a new patch that correct a spinlock recursion warning.

Maxime Méré (4):
  crypto: stm32/cryp - use dma when possible.
  crypto: stm32/cryp - increase priority
  crypto: stm32/cryp - add CRYPTO_ALG_KERN_DRIVER_ONLY flag
  crypto: stm32/cryp - call finalize with bh disabled

 drivers/crypto/stm32/stm32-cryp.c | 719 ++++++++++++++++++++++++++++--
 1 file changed, 674 insertions(+), 45 deletions(-)

Comments

Herbert Xu June 7, 2024, 11:53 a.m. UTC | #1
On Tue, May 28, 2024 at 04:05:44PM +0200, Maxime MERE wrote:
> From: Maxime Méré <maxime.mere@foss.st.com>
> 
> This series of patches mainly aims to improve the usage of DMA with the
> CRYP peripheral of the STM32 MPU series. The other two patches are
> needed to enhance the driver's visibility for ST platforms.
> 
> This patchset version 3 addresses the issues identified by Herbert.
> The code that raised a warning was in fact useless as there is already
> an overflow check in the "stm32_cryp_dma_check" function so I removed
> it.
> 
> I've also added a new patch that correct a spinlock recursion warning.
> 
> Maxime Méré (4):
>   crypto: stm32/cryp - use dma when possible.
>   crypto: stm32/cryp - increase priority
>   crypto: stm32/cryp - add CRYPTO_ALG_KERN_DRIVER_ONLY flag
>   crypto: stm32/cryp - call finalize with bh disabled
> 
>  drivers/crypto/stm32/stm32-cryp.c | 719 ++++++++++++++++++++++++++++--
>  1 file changed, 674 insertions(+), 45 deletions(-)
> 
> -- 
> 2.25.1

All applied.  Thanks.