On Sat, Aug 31, 2019 at 01:55:55PM +0200, Daniel Mack wrote: > The timeriomem_rng driver only accesses the first 4 bytes of the given > memory area and currently, it also forces that memory resource to be > exactly 4 bytes in size. > > This, however, is problematic when used with device-trees that are > generated from things like FPGA toolchains, where the minimum size > of an exposed memory block may be something like 4k. > > Hence, let's only check for what's needed for the driver to operate > properly; namely that we have enough memory available to read the > random data from. > > Signed-off-by: Daniel Mack <daniel@xxxxxxxxxx> > --- > Documentation/devicetree/bindings/rng/timeriomem_rng.txt | 2 +- > drivers/char/hw_random/timeriomem-rng.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt