mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
crypto: aspeed: fix polling RSA status wrong issue
Check interrupt status to see if RSA engine is completed. After completion
of the task, write-clear the status to finish operation.
Add missing register base for completion.
Fixes: 89c36cca0b
("crypto: aspeed: Add AST2600 ACRY support")
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
Reviewed-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
This commit is contained in:
parent
5d90836cb5
commit
829b41171b
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ static int aspeed_acry_mod_exp(struct udevice *dev, const uint8_t *sig, uint32_t
|
|||
while (1) {
|
||||
reg = readl(acry->base + ACRY_RSA_INT_STS);
|
||||
if ((reg & ACRY_RSA_INT_STS_RSA_READY) && (reg & ACRY_RSA_INT_STS_RSA_CMPLT)) {
|
||||
writel(reg, ACRY_RSA_INT_STS);
|
||||
writel(reg, acry->base + ACRY_RSA_INT_STS);
|
||||
break;
|
||||
}
|
||||
udelay(20);
|
||||
|
|
Loading…
Reference in a new issue