crypto: aspeed: fix polling RSA status wrong issue
authorNeal Liu <neal_liu@aspeedtech.com>
Tue, 15 Feb 2022 10:14:40 +0000 (18:14 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 21 Feb 2022 13:35:40 +0000 (08:35 -0500)
commit829b41171b181e083fc984b72bb8acb31c1fb952
tree052eb6ef742e65f43d8f77ce9e410846d3527f6e
parent5d90836cb51de553cf3a83143f99cd60cae26578
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: 89c36cca0b6 ("crypto: aspeed: Add AST2600 ACRY support")
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
Reviewed-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
drivers/crypto/aspeed/aspeed_acry.c