summaryrefslogtreecommitdiff
path: root/drivers/ata
diff options
context:
space:
mode:
authorCyrille Pitchen <cyrille.pitchen@atmel.com>2017-01-26 19:07:50 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-02-03 13:16:13 +0300
commit9064ed92695b4d9d20e4d5d72fe72465eaa1c162 (patch)
tree1d787b5ea3ec11ce447bca67317280497f917c02 /drivers/ata
parentf07cebad63b28562d030eee8c762833eca50e46e (diff)
downloadlinux-9064ed92695b4d9d20e4d5d72fe72465eaa1c162.tar.xz
crypto: atmel-sha - add atmel_sha_wait_for_data_ready()
This patch simply defines a helper function to test the 'Data Ready' flag of the Status Register. It also gives a chance for the crypto request to be processed synchronously if this 'Data Ready' flag is already set when polling the Status Register. Indeed, running synchronously avoid the latency of the 'Data Ready' interrupt. When the 'Data Ready' flag has not been set yet, we enable the associated interrupt and resume processing the crypto request asynchronously from the 'done' task just as before. Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions