Skip to content
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

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

gSahitya-samsung
Copy link
Contributor

No description provided.

*
**************************************************************************/

int (*prepare)(FAR struct pm_callback_s *cb, enum pm_state_e pmstate);
int (*sleep)(FAR struct pm_callback_s *cb);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need prepare?

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants