]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-sham - error handling improved
authorDmitry Kasatkin <dmitry.kasatkin@nokia.com>
Fri, 19 Nov 2010 14:04:24 +0000 (16:04 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 27 Nov 2010 08:37:17 +0000 (16:37 +0800)
commit0b4fd4a909da5f0b6700688e56b9e3acc45e2d32
treee04e9dfcfbfc95ad5a529dd10b504c1dce22ae66
parenta2c7235f100fa0c4f591343c2e6f774336be4848
crypto: omap-sham - error handling improved

Introduces DMA error handling.

DMA error is returned as a result code of the hash request.
Clients needs to handle error codes and may repeat hash calculation attempt.

Also in the case of DMA error, SHAM module is set to be re-initialized again.
It significantly improves stability against possible HW failures.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c