[PATCH] crypto: rockchip: fail ahash requests on HASH idle timeout
Herbert Xu
herbert at gondor.apana.org.au
Sun Jul 5 01:41:02 PDT 2026
On Tue, Jun 23, 2026 at 09:55:28PM +0800, Pengpeng Hou wrote:
> rk_hash_run() waits for RK_CRYPTO_HASH_STS to become idle after the
> final DMA transfer, but ignores the poll result. If the hash engine
> never becomes idle, the driver still reads the digest registers and
> finalizes the request with the previous success value.
>
> Store the poll result and finalize the request with the timeout error
> before reading the digest registers.
>
> Fixes: 37bc22159c45 ("crypto: rockchip - use read_poll_timeout")
> Signed-off-by: Pengpeng Hou <pengpeng at iscas.ac.cn>
> ---
> drivers/crypto/rockchip/rk3288_crypto_ahash.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the linux-arm-kernel
mailing list