This patch allows the device tree to be split up into multiple trees. Idon't really expect it to be merged, but it is an important part ofsuspend at the moment, and I certainly want to see something like itthat will allow us to suspend some parts of the device tree and notothers. Suspend2 uses it to keep alive the hard drive (or equivalent)that we're writing the image to while suspending other devices, thusimproving the consistency of the image written.

I remember from last time this was posted that someone commented onexporting the default device tree; I haven't changed that yet.

/**- * device_suspend - Save state and stop all devices in system.+ * device_suspend_tree - Save state and stop all devices in system. * @state: Power state to put each device in. * * Walk the dpm_active list, call ->suspend() for each device, and move@@ -60,19 +60,19 @@ * the device to the dpm_off list. If it returns -EAGAIN, we move it to * the dpm_off_irq list. If we get a different error, try and back out. *- * If we hit a failure with any of the devices, call device_resume()+ * If we hit a failure with any of the devices, call device_resume_tree() * above to bring the suspended devices back to life. * */