Re: [PATCH] hw_random: timeriomem-rng: Remove 'max < 4' condition check

2017-08-22 Thread Rick Altherr
On Tue, Aug 22, 2017 at 9:22 AM, PrasannaKumar Muralidharan wrote: > > In read routiene max is always >= 4. The check whether 'max < 4' is not > necessary. Remove it. Missed that in the header. Acked-By: Rick Altherr > > Signed-off-by: PrasannaKumar Mura

[PATCH v2 2/2] hw_random: timeriomem_rng: Allow setting RNG quality from platform data

2017-05-22 Thread Rick Altherr
When a hw_random device's quality is non-zero, it will automatically be used to fill the kernel's entropy pool. Since timeriomem_rng is used by many different devices, the quality needs to be provided by platform data or device tree. Signed-off-by: Rick Altherr --- Changes in v2

[PATCH v2 1/2] dt-bindings: timeriomem_rng: Add entropy quality property

2017-05-22 Thread Rick Altherr
Signed-off-by: Rick Altherr --- Changes in v2: None Documentation/devicetree/bindings/rng/timeriomem_rng.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/rng/timeriomem_rng.txt b/Documentation/devicetree/bindings/rng/timeriomem_rng.txt index

[PATCH v1 2/2] hw_random: timeriomem_rng: Allow setting RNG quality from platform data

2017-05-17 Thread Rick Altherr
When a hw_random device's quality is non-zero, it will automatically be used to fill the kernel's entropy pool. Since timeriomem_rng is used by many different devices, the quality needs to be provided by platform data or device tree. Signed-off-by: Rick Altherr --- drivers/char

[PATCH v1 1/2] dt-bindings: timeriomem_rng: Add entropy quality property

2017-05-17 Thread Rick Altherr
Signed-off-by: Rick Altherr --- Documentation/devicetree/bindings/rng/timeriomem_rng.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/rng/timeriomem_rng.txt b/Documentation/devicetree/bindings/rng/timeriomem_rng.txt index 6616d15866a3

[PATCH v2 2/3] hw_random: timeriomem_rng: Shorten verbose type and variable names

2017-04-05 Thread Rick Altherr
No functional changes. Signed-off-by: Rick Altherr --- Changes in v2: - Split type and variable renames into separate patch drivers/char/hw_random/timeriomem-rng.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/char/hw_random

[PATCH v2 1/3] hw_random: Migrate timeriomem_rng to new API

2017-04-05 Thread Rick Altherr
Preserves the existing behavior of only returning 32-bits per call. Signed-off-by: Rick Altherr --- Changes in v2: - Split API migration into separate patch drivers/char/hw_random/timeriomem-rng.c | 60 - 1 file changed, 30 insertions(+), 30 deletions(-) diff

[PATCH v2 3/3] hw_random: timeriomem_rng: Improve performance for sub-jiffie update periods

2017-04-05 Thread Rick Altherr
: Rick Altherr --- Changes in v2: - Split performance improvements into separate patch drivers/char/hw_random/timeriomem-rng.c | 86 + 1 file changed, 45 insertions(+), 41 deletions(-) diff --git a/drivers/char/hw_random/timeriomem-rng.c b/drivers/char/hw_random

[PATCH v2 0/3] hw_random: timeriomem_rng: Migrate to new API and improve performance

2017-04-05 Thread Rick Altherr
migration into separate patch - Split type and variable renames into separate patch - Split performance improvements into separate patch Rick Altherr (3): hw_random: Migrate timeriomem_rng to new API hw_random: timeriomem_rng: Shorten verbose type and variable names hw_random: timeriomem_rng: Improve

[PATCH v1] hw_random: Fix timeriomem_rng for sub-jiffie update periods

2017-04-04 Thread Rick Altherr
new hw_random API while I in this driver. Signed-off-by: Rick Altherr --- drivers/char/hw_random/timeriomem-rng.c | 153 1 file changed, 75 insertions(+), 78 deletions(-) diff --git a/drivers/char/hw_random/timeriomem-rng.c b/drivers/char/hw_random/timeriomem