mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master] crypto: caam - remove overly verbose debug print
@ 2024-01-02 16:55 Ahmad Fatoum
  2024-01-03 11:20 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-01-02 16:55 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

We can already read /dev/hwrng to get the randomness as generated by the
device. Printing 32K bytes of randomness to the log (or even worse to
console) is just not useful for debugging. There are debug prints for
the job descriptors and Linux doesn't have this print too since commit
2c5e88dc90f5 ("crypto: caam - simplify RNG implementation"), so let's
drop it in barebox too.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/crypto/caam/caamrng.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/crypto/caam/caamrng.c b/drivers/crypto/caam/caamrng.c
index ede35cea7f80..ea154913cab6 100644
--- a/drivers/crypto/caam/caamrng.c
+++ b/drivers/crypto/caam/caamrng.c
@@ -91,9 +91,6 @@ static void rng_done(struct device *jrdev, u32 *desc, u32 err, void *context)
 
 	/* Buffer refilled, invalidate cache */
 	dma_sync_single_for_cpu(jrdev, bd->addr, RN_BUF_SIZE, DMA_FROM_DEVICE);
-
-	print_hex_dump_debug("rng refreshed buf@: ", DUMP_PREFIX_OFFSET,
-			     16, 4, bd->buf, RN_BUF_SIZE, 1);
 }
 
 static inline int submit_job(struct caam_rng_ctx *ctx, int to_current)
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-03 11:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-02 16:55 [PATCH master] crypto: caam - remove overly verbose debug print Ahmad Fatoum
2024-01-03 11:20 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox