Re: [PATCH 2/6] hwrng: core: Simplify RNG switching from sysfs

2015-09-14 Thread Lee Jones
On Sun, 13 Sep 2015, Peter Korsgaard wrote: > > "Lee" == Lee Jones writes: > > > If we attempt to use sysfs to change the current RNG in the usual > > way i.e. issuing something like: > > > `echo 8a8a000.rng > /sys/devices/virtual/misc/hw_random/rng_current` > >

Re: [PATCH 2/6] hwrng: core: Simplify RNG switching from sysfs

2015-09-13 Thread Peter Korsgaard
> "Lee" == Lee Jones writes: > If we attempt to use sysfs to change the current RNG in the usual > way i.e. issuing something like: > `echo 8a8a000.rng > /sys/devices/virtual/misc/hw_random/rng_current` > ... it will fail because the code doesn't currently take

[PATCH 2/6] hwrng: core: Simplify RNG switching from sysfs

2015-09-11 Thread Lee Jones
If we attempt to use sysfs to change the current RNG in the usual way i.e. issuing something like: `echo 8a8a000.rng > /sys/devices/virtual/misc/hw_random/rng_current` ... it will fail because the code doesn't currently take the '\n' into consideration. Well, now it does. Signed-off-by: Lee