Changes to sysfs PM layer break userspace

From: Matthew Garrett
Date: Tue Dec 19 2006 - 14:16:07 EST


Commit 047bda36150d11422b2c7bacca1df324c909c0b3 broke userspace.
Previously, /sys/bus/pci/devices/foo/power/state could have values
echoed into it for triggering suspend/resume calls in the driver. The
breakage is handily mentioned in the comment:

"Devices with bus.suspend_late(), or bus.resume_early() methods fail
this operation; those methods couldn't be called."

but there's no mention of what previously working code is supposed to do
now. That's the second time in the past year or so that this interface
has been broken - can we have it working again, please, especially as
there doesn't appear to be an alternative yet?

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
-
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/