Fix/Improve Hardware RNG for ODROID C1 #170
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello
From what I understand, by commiting efa186d which disables
CONFIG_PM_RUNTIME
, the init routines for the HW RNG are neither defined nor (obviously) automatically ran by the PM system and therefore entropy validation fails whenrngd
tries to use the device.On a typical start up of
rngd
, this leads to the following series of messages , as seen on the forums, which understandably confuses poor user ctmme.Eventually it fails and
rngd
will bail out in the usual case.My pull request is two-fold:
struct hwrng
callbacks, while keeping the power management code working the same way.As this is my first kernel patch and I'm in no way familiar with the power management systems, please review thoroughly. In particular I wonder if assigning .cleanup is needed, and I'm not 100% sure the two calls that are added in the resume/suspend functions are side-effect free.
This fixes #157