Suspend order
Hey rafael,
For obvious reasons it would be great to have serial output to be the last to enter suspend, thus giving every last drop of debugging before actually turning the machine "off".
I'm not aware of any specific order currently, from what I've seen currently every driver is asked to go into suspend at the same time. This of course providing driver x isn't dependant on driver y. You following?
So, without digging to much into this, is there any specific order?
Best wishes
Kristoffer
Hi,
Quoted 8 lines · Kristoffer Ericson
Hey rafael,
For obvious reasons it would be great to have serial output to be the last to enter suspend, thus giving every last drop of debugging before actually turning the machine "off".
I'm not aware of any specific order currently, from what I've seen currently every driver is asked to go into suspend at the same time. This of course providing driver x isn't dependant on driver y. You following?
So, without digging to much into this, is there any specific order?
Yes, there is.
Devices are suspended in the order reverse with respect to the one in which they have been registered (ie. the last registered device is suspended first).
Still, if you want the serial console to work over the suspend, try booting the kernel with the no_console_suspend command line switch (that's applicable to the current mainline, there was a configuration option for that previously).
Greetings,
Rafael