crypto: aspeed: fix polling RSA status wrong issue
Subsystems (3)
Neal Liu
maintainerPATCH 1/1 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.
--- drivers/crypto/aspeed/aspeed_acry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/aspeed/aspeed_acry.c +1 -1
@@ -103,7 +103,7 @@ static int aspeed_acry_mod_exp(struct udevice *dev, const uint8_t *sig, uint32_twhile (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 );
Signature · 1 line
2.25.1
Quoted 8 lines
From: Neal Liu <[email protected]>
Sent: Tuesday, February 15, 2022 4:55 PMCheck 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.Signed-off-by Neal Liu <[email protected]>
Please add a line with "Fixes:" tag in the commit message to indicate this is a fix.
Thanks,
Chiawei
Neal Liu
maintainerQuoted 17 lines
-----Original Message-----
From: ChiaWei Wang <[email protected]>
Sent: Tuesday, February 15, 2022 5:58 PM
To: Neal Liu <[email protected]>; Ryan Chen <[email protected]>; [email protected]
Cc: BMC-SW <[email protected]>
Subject: RE: [PATCH] crypto: aspeed: fix polling RSA status wrong issueQuoted 8 lines
From: Neal Liu <[email protected]>
Sent: Tuesday, February 15, 2022 4:55 PMCheck 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.
Signed-off-by Neal Liu <[email protected]>
Quoted 7 lines
Please add a line with "Fixes:" tag in the commit message to indicate this is a fix.
Reviewed-by Chia-Wei Wang <[email protected]>Thanks,
Chiawei
Thanks, I'll send next patch within your suggestion.
-Neal