crypto: starfive - RSA poll csr for done status
authorJia Jie Ho <jiajie.ho@starfivetech.com>
Tue, 14 Nov 2023 17:12:14 +0000 (01:12 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Nov 2023 10:13:56 +0000 (18:13 +0800)
commitba6e3ee4f5d6c13e984f8cb5fb1706ca39ff4a0e
tree7693598afcedbef775a9b23827b009513b126a85
parent29ce1bce3a713a8031a88f80224b72696813447d
crypto: starfive - RSA poll csr for done status

Hardware could not clear irq status without resetting the entire module.
Driver receives irq immediately when mask bit is cleared causing
intermittent errors in RSA calculations. Switch to use csr polling for
done status instead.

Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/starfive/jh7110-cryp.c
drivers/crypto/starfive/jh7110-cryp.h
drivers/crypto/starfive/jh7110-rsa.c