Re: Add a "enable" sysfs attribute to the pci devices to allowuserspace (Xorg) to enable devices without doing foul direct access

From: Peter Jones
Date: Tue May 02 2006 - 15:29:30 EST


On Tue, 2006-05-02 at 15:00 -0400, Jon Smirl wrote:
> I also can not see how user space suspend/resume can
> disable PCI hardware without coordinating with an active device
> driver.

And that's not a reasonable thing for userspace to do, if an active
device driver is using that. But sometimes it might want to turn a
device on, perform some action, and then disable it again.

[...]
> You may call this silly but it is a real pain to spend hours debugging
> code only to discover that it failed because some other app unknown to
> you altered the state of the hardware while you were using it.

"Doctor, it hurts when I stab myself in the eye..."

--
Peter

-
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/