public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix runtime device suspend/resumre interface
@ 2006-02-21  0:55 Patrick Mochel
  2006-02-21 17:49 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Mochel @ 2006-02-21  0:55 UTC (permalink / raw)
  To: greg, akpm, torvalds; +Cc: linux-kernel, linux-pm


Hi there,

Here is an updated version of the patches to fix the sysfs interface for
runtime device power management by restoring the file to its originally
designed behavior - to place devices in the power state specified by the
user process writing to the file.

Recently, the interface was changed to filter out values to prevent a
BUG() that was introduced in the PCI power management code. While a valid
fix, it makes the driver core filter values that might otherwise be used
by the bus/device drivers. This behavior enforces a hard-coded,
non-configurable policy in the driver core, and prevents any other power
state besides "on" and "off" from being used.

These patches implement a solution to that problem by introducing a
"state" field to the pm_message_t structure, which is passed to the bus
drivers for each suspend request. The sysfs interface is modified to
forward the value written to the file in the .state field. The bus and
device drivers can use that field as guidance for which power state to
enter.

While not the only solution to the problem, this solution should restore
the desired functionality to the per-device "state" file with the least
amount of impact.

Thanks,


	Pat

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-01 11:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21  0:55 [PATCH 0/4] Fix runtime device suspend/resumre interface Patrick Mochel
2006-02-21 17:49 ` Greg KH
2006-02-27 19:18   ` Patrick Mochel
2006-03-01  0:38     ` Greg KH
2006-03-01 11:31       ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox