From: william.qiu Date: Mon, 4 Jul 2022 10:12:54 +0000 (+0800) Subject: crypto:starfive:remove sha warning log X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f5d126e070809bbd477b7231b1d5d3d2d7de563;p=platform%2Fkernel%2Flinux-starfive.git crypto:starfive:remove sha warning log remove sha warning log Signed-off-by: william.qiu --- diff --git a/drivers/crypto/starfive/jh7110/jh7110-sha.c b/drivers/crypto/starfive/jh7110/jh7110-sha.c index bf145c7..ac498c6 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;