summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random/bcm63xx-rng.c
diff options
context:
space:
mode:
authorCyrille Pitchen2016-01-15 15:49:34 +0100
committerHerbert Xu2016-01-25 15:42:07 +0100
commit7cee3508162a1760bc104c48d14202b01af28e53 (patch)
tree74b44602eb793923a37937dba0baacdc8cef266d /drivers/char/hw_random/bcm63xx-rng.c
parentcrypto: atmel-sha - add support of sama5d2x SoCs (diff)
downloadkernel-qcow2-linux-7cee3508162a1760bc104c48d14202b01af28e53.tar.gz
kernel-qcow2-linux-7cee3508162a1760bc104c48d14202b01af28e53.tar.xz
kernel-qcow2-linux-7cee3508162a1760bc104c48d14202b01af28e53.zip
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>
Diffstat (limited to 'drivers/char/hw_random/bcm63xx-rng.c')
0 files changed, 0 insertions, 0 deletions