mbox series

[v2,0/7] Support of HASH on STM32MP13

Message ID 20230713151518.1513949-1-thomas.bourgoin@foss.st.com (mailing list archive)
Headers show
Series Support of HASH on STM32MP13 | expand

Message

Thomas Bourgoin July 13, 2023, 3:15 p.m. UTC
From: Thomas Bourgoin <thomas.bourgoin@foss.st.com>

The STM32MP13 platform introduces a new version of the IP HASH.
This version of the IP support SHA1, SHA2, SHA3 algorithms and HMAC.
This serie also add some fixes when using the DMA to feed data to the IP.

1. Add new YAML compatible st,stm32mp13-hash.

2. Update driver to support SHA2, SHA3 algorithms for the compatible
st,stm32mp13-hash.

3. Argument bufcnt is unused in function stm32_hash_write_ctrl. Removes it
to simplify the declaration of the function.

4-7. DMA fixes

Changes in v2:
 - Add SoB in dt-bindings: crypto: add new compatible for stm32-hash

 - Fix regression in crypto: stm32 - add new algorithms support
   The macro HASH_CSR_NB_SHA256 was equal to 22 change to 38.

 - Update commit message of crypto: stm32 - fix MDMAT condition
       Cc: stable@vger.kernel.org and
       Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Lionel Debieve (1):
  dt-bindings: crypto: add new compatible for stm32-hash

Thomas Bourgoin (6):
  crypto: stm32 - add new algorithms support
  crypto: stm32 - remove bufcnt in stm32_hash_write_ctrl.
  crypto: stm32 - fix loop iterating through scatterlist for DMA
  crypto: stm32 - check request size and scatterlist size when using
    DMA.
  crypto: stm32 - fix MDMAT condition
  crypto: stm32 - remove flag HASH_FLAGS_DMA_READY

 .../bindings/crypto/st,stm32-hash.yaml        |   1 +
 drivers/crypto/stm32/Kconfig                  |   2 +
 drivers/crypto/stm32/stm32-hash.c             | 710 ++++++++++++++----
 3 files changed, 566 insertions(+), 147 deletions(-)

Comments

Linus Walleij July 15, 2023, 8:02 p.m. UTC | #1
On Thu, Jul 13, 2023 at 5:16 PM Thomas BOURGOIN
<thomas.bourgoin@foss.st.com> wrote:

> From: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
>
> The STM32MP13 platform introduces a new version of the IP HASH.
> This version of the IP support SHA1, SHA2, SHA3 algorithms and HMAC.
> This serie also add some fixes when using the DMA to feed data to the IP.

The series:
Tested-by: Linus Walleij <linus.walleij@linaro.org>

Thanks for the follow-up!

Yours,
Linus Walleij
Herbert Xu July 22, 2023, 2:15 a.m. UTC | #2
On Thu, Jul 13, 2023 at 05:15:11PM +0200, Thomas BOURGOIN wrote:
> From: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
> 
> The STM32MP13 platform introduces a new version of the IP HASH.
> This version of the IP support SHA1, SHA2, SHA3 algorithms and HMAC.
> This serie also add some fixes when using the DMA to feed data to the IP.
> 
> 1. Add new YAML compatible st,stm32mp13-hash.
> 
> 2. Update driver to support SHA2, SHA3 algorithms for the compatible
> st,stm32mp13-hash.
> 
> 3. Argument bufcnt is unused in function stm32_hash_write_ctrl. Removes it
> to simplify the declaration of the function.
> 
> 4-7. DMA fixes
> 
> Changes in v2:
>  - Add SoB in dt-bindings: crypto: add new compatible for stm32-hash
> 
>  - Fix regression in crypto: stm32 - add new algorithms support
>    The macro HASH_CSR_NB_SHA256 was equal to 22 change to 38.
> 
>  - Update commit message of crypto: stm32 - fix MDMAT condition
>        Cc: stable@vger.kernel.org and
>        Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> 
> Lionel Debieve (1):
>   dt-bindings: crypto: add new compatible for stm32-hash
> 
> Thomas Bourgoin (6):
>   crypto: stm32 - add new algorithms support
>   crypto: stm32 - remove bufcnt in stm32_hash_write_ctrl.
>   crypto: stm32 - fix loop iterating through scatterlist for DMA
>   crypto: stm32 - check request size and scatterlist size when using
>     DMA.
>   crypto: stm32 - fix MDMAT condition
>   crypto: stm32 - remove flag HASH_FLAGS_DMA_READY
> 
>  .../bindings/crypto/st,stm32-hash.yaml        |   1 +
>  drivers/crypto/stm32/Kconfig                  |   2 +
>  drivers/crypto/stm32/stm32-hash.c             | 710 ++++++++++++++----
>  3 files changed, 566 insertions(+), 147 deletions(-)
> 
> -- 
> 2.25.1

All applied.  Thanks.