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

Automatic device dependency tracking #14309

Closed
pizi-nordic opened this issue Mar 12, 2019 · 6 comments
Closed

Automatic device dependency tracking #14309

pizi-nordic opened this issue Mar 12, 2019 · 6 comments
Assignees
Labels
area: Power Management Enhancement Changes/Updates/Additions to existing features

Comments

@pizi-nordic
Copy link
Collaborator

pizi-nordic commented Mar 12, 2019

We need abstraction of dependencies between devices in order to perform power management operations in correct order and on all devices affected by given operation. For example when suspending a SPI device, we might also suspend SPI Controller (driving SCLK, MISO and MOSI) and GPIO controller (driving /CS) if they are no longer use as well as cut off power from unused part of SoC/board.

All data we need is in the DTS. We have to extract this and convert to a form which will be easy to use by the device power management code.

@nashif
Copy link
Member

nashif commented Feb 22, 2021

should we close this?

@pabigot
Copy link
Collaborator

pabigot commented Feb 22, 2021

Seems like this is done, yes.

@pabigot pabigot closed this as completed Feb 22, 2021
@ball-hayden
Copy link
Contributor

ball-hayden commented Mar 11, 2021

@nashif / @pabigot - do you have a link to the commit / PR that fixed this issue, please?
(I'm trying to trace whether this has landed for our fork yet)

@pabigot
Copy link
Collaborator

pabigot commented Mar 11, 2021

#32127 supplies the necessary information. There's very little infrastructure to actually use this data yet, and the API is still evolving (#32547). But the data from DTS is now available, so this is closed.

@ball-hayden
Copy link
Contributor

Thank you. To clarify, then, the example you give ("when suspending a SPI device, we might also suspend SPI Controller") is not yet implemented?

@pabigot
Copy link
Collaborator

pabigot commented Mar 11, 2021

To clarify, then, the example you give ("when suspending a SPI device, we might also suspend SPI Controller") is not yet implemented?

Correct, no drivers have been updated to do this. I expect it will ultimately be done using the device power management API, which is currently being discussed elsewhere (I don't know exactly where).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Power Management Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

4 participants