mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
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: Lei wang <leiwan@codeaurora.org>
This commit is contained in:
parent
5e999608a4
commit
f7886d93bf
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue