Re: [PATCH] Documentation: dt-bindings: Document 'rng-seed' for /chosen

From: Hsin-Yi Wang
Date: Fri Apr 03 2020 - 12:21:42 EST


On Fri, Apr 3, 2020 at 2:07 AM Florian Fainelli <f.fainelli@xxxxxxxxx> wrote:
> >
> > Are you sure about this being limited to a u32 value? I thought you could
> > pass an arbitrary-length value here.
>
> Humm indeed, we can pass an arbitrary value, I completely conflated the
> type of "l" here:
>
> int l;
> ...
> rng_seed = of_get_flat_dt_prop(node, "rng-seed", &l);
>
> with how much we would be reading from the property, which is complete
> nonsense. Out of curiosity, what property length do platforms typically
> populate?
> --
> Florian

64 bytes should be able to init crng. (pass CRNG_INIT_CNT_THRESH)