Skip to content
Commit a9aba825 authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Christopher Friedt
Browse files

pm: Fix device resume order



Devices need to be resumed in the reverse order they are suspended.
e.g: devA +---> devB ---> devD
          |
          +---> devC

They are initialized in the following order, devA -> devB -> devC ->
devD, and suspended starting from the end of the list, devD -> devC ->
devB -> devA. When they are suspended they are temporary put in a list
that is used later to resume them.

This list has to be iterated from the end to the beginning, otherwise a
device may be resumed before its parent.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent e7df33e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment