-
Notifications
You must be signed in to change notification settings - Fork 585
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
[Do not merge] os/pm: restructure pm for LCD changes #6560
base: master
Are you sure you want to change the base?
Conversation
0bc3293
to
d2afca8
Compare
* | ||
**************************************************************************/ | ||
|
||
int (*prepare)(FAR struct pm_callback_s *cb, enum pm_state_e pmstate); | ||
int (*sleep)(FAR struct pm_callback_s *cb); |
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.
do we need prepare?
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.
prepare
is not needed in new design because we have wake
callback now. If before sleep, a driver failed to change its state according to the new PM state, it will raise ERROR
then PM will wake all the slept driver immediately. The drivers must support wake
operation. The prepare
is only needed if we want to separate prepare functionality from sleep
callback. Considering current NDP
and Audio
driver code this separation is not needed.
No description provided.