mbox series

[v3,0/2] crypto: starfive - Add RSA algo to drivers

Message ID 20230612085230.193507-1-jiajie.ho@starfivetech.com (mailing list archive)
Headers show
Series crypto: starfive - Add RSA algo to drivers | expand

Message

Jia Jie Ho June 12, 2023, 8:52 a.m. UTC
This patch series adds RSA support to VisionFive 2 SoCs. Patch 1 updates
current irq handling of hash module to prevent conflict among other
crypto modules. Patch 2 adds RSA algo to crypto engine drivers.

Changes v2 -> v3:
 - Rearranged irq mask clear sequence to prevent spurious interrupt
   from completing pka_done prematurely (Herbert)

Changes v1 -> v2:
 - Removed ASYNC flag (Herbert)

Jia Jie Ho (2):
  crypto: starfive - Update hash module irq handling
  crypto: starfive - Add RSA algo support

 drivers/crypto/starfive/Kconfig       |   1 +
 drivers/crypto/starfive/Makefile      |   2 +-
 drivers/crypto/starfive/jh7110-cryp.c |  20 +-
 drivers/crypto/starfive/jh7110-cryp.h |  45 ++
 drivers/crypto/starfive/jh7110-hash.c |   9 +-
 drivers/crypto/starfive/jh7110-rsa.c  | 617 ++++++++++++++++++++++++++
 6 files changed, 691 insertions(+), 3 deletions(-)
 create mode 100644 drivers/crypto/starfive/jh7110-rsa.c

Comments

Herbert Xu June 23, 2023, 8:21 a.m. UTC | #1
On Mon, Jun 12, 2023 at 04:52:28PM +0800, Jia Jie Ho wrote:
> This patch series adds RSA support to VisionFive 2 SoCs. Patch 1 updates
> current irq handling of hash module to prevent conflict among other
> crypto modules. Patch 2 adds RSA algo to crypto engine drivers.
> 
> Changes v2 -> v3:
>  - Rearranged irq mask clear sequence to prevent spurious interrupt
>    from completing pka_done prematurely (Herbert)
> 
> Changes v1 -> v2:
>  - Removed ASYNC flag (Herbert)
> 
> Jia Jie Ho (2):
>   crypto: starfive - Update hash module irq handling
>   crypto: starfive - Add RSA algo support
> 
>  drivers/crypto/starfive/Kconfig       |   1 +
>  drivers/crypto/starfive/Makefile      |   2 +-
>  drivers/crypto/starfive/jh7110-cryp.c |  20 +-
>  drivers/crypto/starfive/jh7110-cryp.h |  45 ++
>  drivers/crypto/starfive/jh7110-hash.c |   9 +-
>  drivers/crypto/starfive/jh7110-rsa.c  | 617 ++++++++++++++++++++++++++
>  6 files changed, 691 insertions(+), 3 deletions(-)
>  create mode 100644 drivers/crypto/starfive/jh7110-rsa.c
> 
> -- 
> 2.34.1

All applied.  Thanks.