linux/drivers/crypto/ccree
Geert Uytterhoeven b83fd3e5ec crypto: ccree - fix retry handling in cc_send_sync_request()
If cc_queues_status() indicates that the queue is full,
cc_send_sync_request() should loop and retry.

However, cc_queues_status() returns either 0 (for success), or -ENOSPC
(for queue full), while cc_send_sync_request() checks for real errors by
comparing with -EAGAIN.  Hence -ENOSPC is always considered a real
error, and the code never retries the operation.

Fix this by just removing the check, as cc_queues_status() never returns
any other error value than -ENOSPC.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-02-22 09:25:43 +08:00
..
cc_aead.c crypto: ccree - fix AEAD blocksize registration 2020-02-13 17:05:24 +08:00
cc_aead.h crypto: ccree - drop legacy ivgen support 2019-07-26 14:51:55 +10:00
cc_buffer_mgr.c crypto: ccree - dec auth tag size from cryptlen map 2020-02-13 17:05:25 +08:00
cc_buffer_mgr.h crypto: ccree - protect against empty or NULL scatterlists 2020-02-13 17:05:24 +08:00
cc_cipher.c crypto: ccree - remove set but not used variable 'du_size' 2020-02-13 17:05:25 +08:00
cc_cipher.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_crypto_ctx.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_debugfs.c crypto: ccree - fix debugfs register access while suspended 2020-02-22 09:25:42 +08:00
cc_debugfs.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_driver.c crypto: ccree - split overloaded usage of irq field 2020-01-22 16:21:10 +08:00
cc_driver.h crypto: ccree - split overloaded usage of irq field 2020-01-22 16:21:10 +08:00
cc_fips.c crypto: ccree - fix typos in comments 2019-12-11 16:36:54 +08:00
cc_fips.h crypto: ccree - add function to handle cryptocell tee fips error 2019-04-25 15:38:16 +08:00
cc_hash.c crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN 2020-01-09 11:30:53 +08:00
cc_hash.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_host_regs.h crypto: ccree - add HW engine config check 2019-06-27 14:28:00 +08:00
cc_hw_queue_defs.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_kernel_regs.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_lli_defs.h crypto: ccree - allow more AEAD assoc data fragments 2019-04-25 15:38:15 +08:00
cc_pm.c crypto: ccree - make cc_pm_put_suspend() void 2020-01-22 16:21:10 +08:00
cc_pm.h crypto: ccree - erase unneeded inline funcs 2020-01-22 16:21:11 +08:00
cc_request_mgr.c crypto: ccree - fix retry handling in cc_send_sync_request() 2020-02-22 09:25:43 +08:00
cc_request_mgr.h crypto: ccree - fix PM race condition 2020-01-22 16:21:10 +08:00
cc_sram_mgr.c crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_sram_mgr.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
Makefile crypto: ccree - drop legacy ivgen support 2019-07-26 14:51:55 +10:00