diff options
author | andy.hu <andy.hu@starfivetech.com> | 2022-07-05 05:25:10 +0300 |
---|---|---|
committer | andy.hu <andy.hu@starfivetech.com> | 2022-07-05 05:25:10 +0300 |
commit | c9a9507d905f70f1792749320185c93c96df6653 (patch) | |
tree | ba4b65567dedc2a283f5b5790d2a69e866f4b2ae | |
parent | bd08c5f37d19f6909a01bb4b851b8d0bb9fc49b4 (diff) | |
parent | 4f5d126e070809bbd477b7231b1d5d3d2d7de563 (diff) | |
download | linux-c9a9507d905f70f1792749320185c93c96df6653.tar.xz |
Merge branch 'CR_1274_SEC_william.qiu' into 'jh7110-5.15.y-devel'
crypto:starfive:remove sha warning log
See merge request sdk/linux!242
-rw-r--r-- | drivers/crypto/starfive/jh7110/jh7110-sha.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/crypto/starfive/jh7110/jh7110-sha.c b/drivers/crypto/starfive/jh7110/jh7110-sha.c index bf145c72c4ed..ac498c688925 100644 --- a/drivers/crypto/starfive/jh7110/jh7110-sha.c +++ b/drivers/crypto/starfive/jh7110/jh7110-sha.c @@ -71,16 +71,6 @@ static inline int jh7110_hash_wait_key_done(struct jh7110_sec_ctx *ctx) (status & JH7110_SHA_KEY_DONE), 10, 100000); } -static unsigned int jh7110_hash_reverse(unsigned int data) -{ - unsigned int ret; - - ret = (((data & 0x000000ff) << 24) | ((data & 0x0000ff00) << 8) | - ((data & 0x00ff0000) >> 8) | ((data & 0xff000000) >> 24)); - - return ret; -} - static int jh7110_get_hash_size(struct jh7110_sec_ctx *ctx) { unsigned int hashsize; @@ -150,17 +140,6 @@ static int jh7110_sha_hmac_key(struct jh7110_sec_ctx *ctx) return 0; } -static void jh7110_hash_write_back(struct jh7110_sec_ctx *ctx) -{ - struct jh7110_sec_request_ctx *rctx = ctx->rctx; - struct jh7110_sec_dev *sdev = ctx->sdev; - unsigned int *data = (unsigned int *)rctx->sha_digest_mid; - int loop; - - for (loop = 0; loop < jh7110_get_hash_size(ctx) / sizeof(unsigned int); loop++) - jh7110_sec_write(sdev, JH7110_SHA_SHAWSR, data[loop]); -} - static void jh7110_sha_dma_callback(void *param) { struct jh7110_sec_dev *sdev = param; |