crypto: atmel-sha - fix context switches
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 15 Jan 2016 14:49:34 +0000 (15:49 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 Jan 2016 14:42:07 +0000 (22:42 +0800)
commit7cee3508162a1760bc104c48d14202b01af28e53
tree74b44602eb793923a37937dba0baacdc8cef266d
parent507c5cc236a2d751ea423a86486a2d1972369549
crypto: atmel-sha - fix context switches

This patch saves the value of the internal hash register at the end of an
'update' operation then restores this value before starting the next
'update'. This way the driver can now properly handle context switches.

WARNING: only hardware versions from sama5d4x and later provide the
needed interface to update the internal hash value. Especially, sama5d3x
cannot implement this feature so context switches are still broken.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha-regs.h
drivers/crypto/atmel-sha.c
This page took 0.024445 seconds and 5 git commands to generate.