Skip to contentSkip to conversation

PM: Document requirements for basic PM support in drivers (rev. 2)

RFC PATCH New Rafael J. Wysocki 1 participant 1 message Feb 13, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 PM: Document requirements for basic PM support in drivers (rev. 2)

Hi,

Appended is the second version of the patch document the requirements with respect to the basic PM support in drivers and the testing of that. I have cleaned it up a bit and included some comments from Nigel.

Greetings,
Rafael

---
 Documentation/SubmittingDrivers         |   10 ++
 Documentation/power/drivers-testing.txt |  146 ++++++++++++++++++++++++++++++++
 2 files changed, 156 insertions(+)
Documentation/SubmittingDrivers +10 -0
Index: linux-2.6.20-git4/Documentation/SubmittingDrivers
===================================================================
@@ -87,6 +87,16 @@ Clarity:	It helps if anyone can see how 
 		driver that intentionally obfuscates how the hardware works
 		it will go in the bitbucket.
 
+PM support:	Since Linux is used on many portable and desktop systems, your
+		driver is likely to be used on such a system and therefore it
+		should support basic power management by implementing, if
+		necessary, the .suspend and .resume methods used during the
+		system-wide suspend and resume transitions.  You should verify
+		that your driver correctly handles the suspend and resume, but
+		if you are unable to ensure that, please at least define the
+		.suspend method returning the -ENOSYS ("Function not
+		implemented") error.
+
 Control:	In general if there is active maintainance of a driver by
 		the author then patches will be redirected to them unless
 		they are totally obvious and without need of checking.
Documentation/power/drivers-testing.txt new file +146 -0

146 lines not on this page · raw message