From aaa9cf2edd648bd06cd45ae72096369bb5b5ba27 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Wed, 4 Apr 2018 14:15:43 +0200 Subject: [PATCH] drivers: entropy: nrf5: Clarify Kconfig options Clarify the difference between the buffer length and threshold Kconfig options available in the nRF5 entropy driver. Signed-off-by: Carles Cufi --- drivers/entropy/Kconfig.nrf5 | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/entropy/Kconfig.nrf5 b/drivers/entropy/Kconfig.nrf5 index c5bddf77701..45871a08af6 100644 --- a/drivers/entropy/Kconfig.nrf5 +++ b/drivers/entropy/Kconfig.nrf5 @@ -28,29 +28,33 @@ config ENTROPY_NRF5_THR_THRESHOLD int "Thread-mode low-water threshold" range 4 255 help - Low-water threshold in bytes to trigger entropy generation for - thread mode consumers. + Low water-mark threshold in bytes to trigger entropy generation for + thread mode consumers. As soon as the number of available bytes in the + buffer goes below this number hardware entropy generation will be + started. config ENTROPY_NRF5_ISR_THRESHOLD int "ISR low-water threshold" range 12 255 help - Low-water threshold in bytes to trigger entropy generation for - ISR consumers. + Low water-mark threshold in bytes to trigger entropy generation for + ISR consumers. As soon as the number of available bytes in the + buffer goes below this number hardware entropy generation will be + started. config ENTROPY_NRF5_THR_BUF_LEN int "Thread-mode buffer length" range ENTROPY_NRF5_THR_THRESHOLD 255 help - Buffer length in bytes to pre-store entropy generation for - thread mode consumers. + Buffer length in bytes used to store entropy bytes generated by the + hardware to make them ready for thread mode consumers. config ENTROPY_NRF5_ISR_BUF_LEN int "ISR buffer length" range ENTROPY_NRF5_ISR_THRESHOLD 255 help - Buffer length in bytes to pre-store entropy generation for - ISR consumers. + Buffer length in bytes used to store entropy bytes generated by the + hardware to make them ready for ISR consumers. config ENTROPY_NRF5_PRI int "RNG interrupt priority"