[PATCH 0/5] Fix device suspend/resume
From: Patrick Mochel
Date: Fri Feb 17 2006 - 21:01:31 EST
Hi there,
Following is a small series of patches to fix up the changes recently made
to the runtime suspend/resume functionality.
The sysfs interface was changed so that it dropped the actual state that
the device was requested to enter. These patches add a state field to
pm_message_t, so that the bus and device drivers can the use value written
to the sysfs file to choose the proper state to enter.
pci_choose_state() is fixed up to check for a non-zero value when the
request is for a PM_EVENT_SUSPEND message and return the appropriate D
state. This allows D1 and D2 to be used once again (though there are few
drivers that currently support it). The BUG() is also converted to a more
friendly WARN_ON(1) when an invalid state is entered.
Finally, the device suspend/resume code is now liberated from an
unconditional deadlock when SMP is enabled.
Please apply. Thanks,
Pat
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/