Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7886d93 authored by Lei wang's avatar Lei wang Committed by Gerrit - the friendly Code Review server
Browse files

hwrng: refine hwrng delay for retry



Per internal test, about 5us-6us is enough for hwrng prepare
the random data. 440us udelay is much more then needed, So
reduce the udelay time for better performance.

Change-Id: I714b67ca6e4f97717db537c799936ea31c96e475
Signed-off-by: default avatarLei wang <leiwan@codeaurora.org>
parent 5e999608
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -41,8 +41,8 @@
#define MAX_HW_FIFO_DEPTH 16                     /* FIFO is 16 words deep */
#define MAX_HW_FIFO_SIZE (MAX_HW_FIFO_DEPTH * 4) /* FIFO is 32 bits wide  */

#define RETRY_MAX_CNT		5	/* max retry times to read register */
#define RETRY_DELAY_INTERVAL	440	/* retry delay interval in us */
#define RETRY_MAX_CNT		500	/* max retry times to read register */
#define RETRY_DELAY_INTERVAL	6	/* retry delay interval in us */

struct msm_rng_device {
	struct platform_device *pdev;