-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: entropy: stm32: Add power management constraints #42375
drivers: entropy: stm32: Add power management constraints #42375
Conversation
555baf9
to
e1c6576
Compare
e1c6576
to
1bf90f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one comment: I see 2 pm_constraint_set
calls and 1 pm_constraint_release
call, I suppose the driver takes care of sequencing, e.g. never call 2 sets and 1 release, etc. (or API is used in a way that this is prevented)
Well, I think you might be right. with reverting the flag, I think the pm_constraint_set can indeed be set multiple times now before releasing. Let me check further/fix that |
Add power management constraints to the entropy driver. This prevents the hardware block to lose it's clock when going into any stop mode of the cpu, which would cause the clock error flag to be set while filling the pool. Signed-off-by: Wouter Cappelle <wouter.cappelle@crodeon.com>
1bf90f3
to
52c2c39
Compare
@gmarull , i've fixed the possible double set. |
@erwango , I've added the comment. Do you have and further review comments? |
Add power managment constraints to the entropy driver.
This prevents the hardware block to lose it's clock when going into any stop mode of the cpu, which would cause the clock error flag to be set while filling the pool.
This is a part of #42374