[PATCH v3 05/12] crypto: atmel-sha: add atmel_sha_wait_for_data_ready()

2017-01-26 Thread Cyrille Pitchen
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

[PATCH v3 05/12] crypto: atmel-sha: add atmel_sha_wait_for_data_ready()

2017-01-26 Thread Cyrille Pitchen
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